summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
AgeCommit message (Expand)Author
2022-02-26have another go at fixing assert "sc->sc_dev == NUM" failed.David Gwynne
2022-02-22Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>Philip Guenther
2022-02-16prevent (re)opening of tun/tap interfaces that are being destroyed.David Gwynne
2022-02-15only tweak ifp if_flags while holding NET_LOCK.David Gwynne
2022-02-15make tun_link_state take the ifnet pointer instead of tun_softc.David Gwynne
2021-03-09Issuing FIOSETOWN and TIOCSPGRP ioctl commands on a tun(4) device leaksanton
2021-02-20let tun use bpf_mtap for handling input packets.David Gwynne
2021-01-19pipex(4): convert ifunit() to if_unit(9)mvs
2020-12-25Refactor klist insertion and removalVisa Hankala
2020-10-04fix indentanton
2020-08-21Leave default ifq_maxlen handling to ifq_init()kn
2020-07-22deprecate interface input handler lists, just use one input function.David Gwynne
2020-07-10Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.Patrick Wildt
2020-07-10Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thePatrick Wildt
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