Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-09-23 | Replace select backends with poll backends. selscan() and pollscan() | Todd C. Miller | |
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK | |||
2003-08-15 | change arguments to suser. suser now takes the process, and a flags | Ted Unangst | |
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@ | |||
2003-06-12 | in FIONREAD and FREAD, use IFQ_POLL instead of looking at if_snd.ifq_len / | Henning Brauer | |
ifq_head, to make altq work. prevents programs from spinning in non-blocking select()/read() loops in case of queues hitting their limits. This makes queueing on tun interfaces work. while it is still advised to assign packets to queues on tunX and queue on the physical interface in generic, this doesn't work in the PPPoE case with the userland pppoe process, there the mbuf tags with the queue IDs don't survive obviously. based on diff from Trevor Talbot, tested successfully by a lot of people on the pf@benzedrine.cx list. ok pb@ kjc@ | |||
2003-05-03 | string fixes; tedu ok | Theo de Raadt | |
2003-04-18 | Add code to set the TUN_* flags for INET6 addresses too. This allows a | Jason Wright | |
tun with ipv6 only to actually send/recv packets. itojun "looks ok to me" (after helping correct several iterations =) | |||
2003-01-07 | remove the altq classifier code which is replaced by pf and no longer used. | Kenjiro Cho | |
ok henning@, deraadt@ | |||
2002-12-06 | Replace license with something that's actually free. | Nathan Binkert | |
Approved by original author. Julian.Onions@nexor.co.uk | |||
2002-06-30 | allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always know | Jun-ichiro itojun Hagino | |
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok | |||
2002-06-06 | kqueue support for bpf; okay markus@ | Niels Provos | |
2002-03-14 | First round of __P removal in sys | Todd C. Miller | |
2001-12-10 | use queue.h macros for TAILQ operations | Jason Wright | |
2001-08-21 | Add support for SIOCADDMULTI & SIOCDELMULTI; NetBSD | brian | |
2001-08-03 | simplify previous fix (0-length mbuf in mbuf chain). from freebsd | Jun-ichiro itojun Hagino | |
2001-08-02 | do not exit loop even if m_len == 0. it is legal to have an mbuf with | Jun-ichiro itojun Hagino | |
m_len == 0 in mbuf chain. | |||
2001-06-27 | introduce the ALTQ queue macros into sys/net files. | Kenjiro Cho | |
the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt | |||
2001-06-15 | change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange. | Jun-ichiro itojun Hagino | |
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed. | |||
2001-05-16 | No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok) | Hakan Olsson | |
2001-04-23 | s = splimp(); ... s = splimp(); ... splx(x); ... splx(s); is a bad idea. | Artur Grabowski | |
2001-03-05 | TUNSIFMODE ioctl (from NetBSD) | Angelos D. Keromytis | |
2001-02-06 | allow configuring number of tunnel ifaces | Michael Shalayeff | |
2000-12-05 | Change bpfattach() link layer type to DLT_LOOP making pcap generated | Hugh Graham | |
bpf filters work on the tun interface. itojun@ approved. | |||
2000-03-21 | add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ ok | Michael Shalayeff | |
1999-12-08 | bring in KAME IPv6 code, dated 19991208. | Jun-ichiro itojun Hagino | |
replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon). | |||
1999-09-29 | fix byte counters; imain@netidea.com | Theo de Raadt | |
1999-07-24 | Return EMSGSIZE for zero length writes - don't panic. | brian | |
1999-04-22 | we don't need to include buf.h | Artur Grabowski | |
1998-08-02 | #define TUNMRU as 16384 and allow incoming packets | brian | |
of up to this size rather than restricting them based on our MTU. | |||
1998-06-26 | convert DLT_LOOP header to network-order u_int32_t | Theo de Raadt | |
1997-12-31 | return error instead of EINTR; brian | Theo de Raadt | |
1997-12-31 | two missing splx(); one from brian, one from me | Theo de Raadt | |
1997-08-31 | for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uid | Theo de Raadt | |
and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion. | |||
1997-07-29 | tun_bpf not needed | Theo de Raadt | |
1997-07-29 | tell bpf packet header is u_char sized; also indent. spotted by newsham | Theo de Raadt | |
1997-07-24 | reindent | Theo de Raadt | |
1997-07-23 | add atalk | Michael Shalayeff | |
1997-02-14 | limit writes to ifp->if_mtu not TUNMTU | Theo de Raadt | |
1996-06-17 | bad splx, bad bad bad | Theo de Raadt | |
1996-06-02 | Fix accident in last commit | Niklas Hallqvist | |
1996-06-02 | shut up GCC -Wall about /* inside a comment | Niklas Hallqvist | |
1996-05-27 | if_name -> if_xname | Theo de Raadt | |
1996-05-16 | drom NetBSD PR#2411: | Michael Shalayeff | |
add bcast support, do if_flags setable, minor cleanup. | |||
1996-05-10 | if_name/if_unit -> if_xname/if_softc | Theo de Raadt | |
1996-04-24 | sorry, folks. cut&paste bug happened. | Michael Shalayeff | |
1996-04-24 | Add IPX support. | Michael Shalayeff | |
1996-04-21 | partial sync with netbsd 960418, more to come | Theo de Raadt | |
1996-03-03 | From NetBSD: 960217 merge | Niklas Hallqvist | |
1996-02-21 | fixed bug in debugging code, so it'll compiles now w/o TUN_DEBUG | Michael Shalayeff | |
enabled. | |||
1996-02-20 | bug fixes, speedups. multiple AFs support. | Michael Shalayeff | |
bpf fixes. | |||
1995-12-15 | use m_pkthdr.len for FIONREAD, correctly indicates how much data is available | Theo de Raadt | |
1995-10-18 | initial import of NetBSD tree | Theo de Raadt | |