summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
AgeCommit message (Expand)Author
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
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
2016-12-21Grab the netlock when opened and closed; ok mpi, rzalamenaMike Belopuhov
2016-12-12Remove most of the splsoftnet() recursions related to cloned interfaces.Martin Pieuchot
2016-09-04When auto-creating an interface when opening a /dev/{tun,tap,switch}Reyk Floeter
2016-04-13We're always ready! So send IFQ_SET_READY() to the bitbucket.Martin Pieuchot
2016-03-01Set IFF_MULTICAST flag on tun(4) interfaces so IPv6 addresses can be assigned.Stefan Sperling
2016-01-31Convert to ulmin and uiomove to prevent integer truncations.Stefan Kempf
2016-01-07Make open(O_NONBLOCK) of tun, tap, and bpf behave like open+ioctl(FIONBIO)Philip Guenther
2015-12-05Make pppx pass packets with npppd through the device. This makes pppx workYASUOKA Masahiko
2015-11-20Prefer if_get() over if_ref() when checking if the interface has beenMartin Pieuchot
2015-11-20dont needlessly clear IFF_OACTIVE.David Gwynne
2015-11-20if we deq m0, we should probably send it to bpf, not m.David Gwynne
2015-11-20shuffle struct ifqueue so in flight mbufs are protected by a mutex.David Gwynne
2015-10-25arp_ifinit() is no longer required.Martin Pieuchot
2015-10-25Introduce if_rtrequest() the successor of ifa_rtrequest().Martin Pieuchot
2015-10-24lookup tap devices in tapkqfilter, not tun devices.David Gwynne
2015-10-23Split up tun(4) into tun(4) & tap(4). Killing the link0 magic to switchClaudio Jeker
2015-09-10dont leak an ifp reference if tun isnt ready to read.David Gwynne
2015-09-09if_put after if_get.David Gwynne
2015-09-01Replace sockaddr casts with the proper satosin(), ... calls.Alexander Bluhm
2015-08-28Fix compiling a kernel without NBPFILTER > 0.Reyk Floeter
2015-07-20Remove splassert(IPL_NET) from if_input().Martin Pieuchot
2015-07-15m_freem() can handle NULL, do not check for this condition beforehands.Theo de Raadt
2015-07-08MFREE(9) is dead, long live m_freem(9)!Martin Pieuchot
2015-06-30Rename if_output() into if_enqueue() to avoid confusion with commentsMartin Pieuchot
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
2015-06-16Store a unique ID, an interface index, rather than a pointer to theMartin Pieuchot
2015-06-01Convert tun(4) to if_input().Martin Pieuchot
2015-05-26move add_net_randomness from ether_input to the if_input task.David Gwynne
2015-05-20Do not increment if_opackets in if_output(). It might make sense to doMartin Pieuchot
2015-05-19splx should also be called in the error case, fix a regressionMartin Pieuchot