summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
AgeCommit message (Expand)Author
2020-05-13only pass the IO_NDELAY flag to ifq_deq_sleep as the nbio argument.David Gwynne
2020-04-12Stop processing packets under non-exclusive (read) netlock.Martin Pieuchot
2020-04-07Abstract the head of knote lists. This allows extending the lists,Visa Hankala
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
2020-02-14Push the KERNEL_LOCK() insidge pgsigio() and selwakeup().Martin Pieuchot
2020-01-31actually set the link state down when the /dev entry is closed.David Gwynne
2020-01-30device poll handlers should return POLL flags, not errnos.David Gwynne
2020-01-28Simplify filterops routines where klist_invalidate() is used.Visa Hankala
2020-01-27add some comments to tun_destroy, and try be a bit more paranoid.David Gwynne
2020-01-25move the SMR_LIST_REMOVE and smr_barrier up in tun_clone_destroy.David Gwynne
2020-01-25tweaks sleeping for an mbuf so it's more mpsafe.David Gwynne
2020-01-25use SMRs to find the right tun_softc on syscall entries.David Gwynne
2020-01-25rework the driver to better manage lifetimes and device lifetimes.David Gwynne
2020-01-24move to if_vinput() in tun_dev_write.David Gwynne
2020-01-24provide a tun_input() interface input handler for tun(4) packets.David Gwynne
2020-01-24change tun_dev_write to allocate one mbuf and cluster for the whole packet.David Gwynne
2020-01-23simplify the uiomove loop in tun_dev_read.David Gwynne
2020-01-23don't need to manage TUN_NBIO ourselves, we get IO_NDELAY for free.David Gwynne
2020-01-23provide a custom if_enqueue handler.David Gwynne
2020-01-23remove IFCAP_VLAN_MTU from tap(4). it's a lie.David Gwynne
2020-01-23unify the tun and tap output and read behaviour.David Gwynne
2020-01-23mild whitespace massaging. no functional change.David Gwynne
2020-01-23don't prototype the cdev entrypoints, sys/conf.h already does it.David Gwynne
2020-01-23remove PIPEX from tun(4) now that pppac(4) should be used instead.David Gwynne
2020-01-08Unify handling of ioctls FIOSETOWN/SIOCSPGRP/TIOCSPGRP andVisa Hankala
2020-01-02Switch tun(4) and tap(4) to use pgsigio(9) and sigio_init(9) forClaudio Jeker
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2019-11-26s/sc_arpcom/sc_ac/ to be consistent with other drivers.David Gwynne
2019-11-26use "sc" as the name of tun_softc variables, not "tp".David Gwynne
2019-11-21rename struct tun_softc members so they're prefixed with "sc".David Gwynne
2019-11-19take care to avoid a race when creating the same interface.David Gwynne
2019-10-16tsleep(9) -> tsleep_nsec(9)Martin Pieuchot
2019-09-13tweak tun/tap kn_data to be more consistent with everything else.David Gwynne
2019-09-12knf for the switch statement in tun_dev_kqfilter.David Gwynne
2019-09-12let userland write up to hardmtu bytes, not just mtu bytes.David Gwynne
2019-06-10don't allow userland to change if_type.David Gwynne
2019-05-12pushing NET_LOCK() further down from if_clone_{create,destroy}()Alexandr Nedvedicky
2019-05-01pretty much all of tun_wakeup needs to be protected with KERNEL_LOCKDavid Gwynne
2019-02-03let tun read AF_MPLS packets from userland.David Gwynne
2018-12-11use ifq_hdatalen for handling the FIONREAD ioctlDavid Gwynne
2018-11-12limit the number of interface units to the number of device minorsDavid Gwynne
2018-02-24when comparing nvgre entries, compare a with b, not a with itself.David Gwynne
2018-01-09Creating a cloned interface could return ENOMEM due to temporaryAlexander Bluhm
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-08-11Remove NET_LOCK()'s argument.Martin Pieuchot
2017-06-03Add missing NET_LOCK().Martin Pieuchot
2017-05-30sizes for free()Theo de Raadt
2017-05-30Introduce ipv{4,6}_input(), two wrappers around IP queues.Martin Pieuchot
2017-05-27Remove superflyous splnet()/splx() dances.Martin Pieuchot
2017-01-24A space here, a space there. Soon we're talking real whitespaceKenneth R Westerback