summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
AgeCommit message (Collapse)Author
2001-12-10use queue.h macros for TAILQ operationsJason Wright
2001-08-21Add support for SIOCADDMULTI & SIOCDELMULTI; NetBSDbrian
2001-08-03simplify previous fix (0-length mbuf in mbuf chain). from freebsdJun-ichiro itojun Hagino
2001-08-02do not exit loop even if m_len == 0. it is legal to have an mbuf withJun-ichiro itojun Hagino
m_len == 0 in mbuf chain.
2001-06-27introduce 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-15change 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-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-04-23s = splimp(); ... s = splimp(); ... splx(x); ... splx(s); is a bad idea.Artur Grabowski
2001-03-05TUNSIFMODE ioctl (from NetBSD)Angelos D. Keromytis
2001-02-06allow configuring number of tunnel ifacesMichael Shalayeff
2000-12-05Change bpfattach() link layer type to DLT_LOOP making pcap generatedHugh Graham
bpf filters work on the tun interface. itojun@ approved.
2000-03-21add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ okMichael Shalayeff
1999-12-08bring 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-29fix byte counters; imain@netidea.comTheo de Raadt
1999-07-24Return EMSGSIZE for zero length writes - don't panic.brian
1999-04-22we don't need to include buf.hArtur Grabowski
1998-08-02#define TUNMRU as 16384 and allow incoming packetsbrian
of up to this size rather than restricting them based on our MTU.
1998-06-26convert DLT_LOOP header to network-order u_int32_tTheo de Raadt
1997-12-31return error instead of EINTR; brianTheo de Raadt
1997-12-31two missing splx(); one from brian, one from meTheo de Raadt
1997-08-31for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidTheo 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-29tun_bpf not neededTheo de Raadt
1997-07-29tell bpf packet header is u_char sized; also indent. spotted by newshamTheo de Raadt
1997-07-24reindentTheo de Raadt
1997-07-23add atalkMichael Shalayeff
1997-02-14limit writes to ifp->if_mtu not TUNMTUTheo de Raadt
1996-06-17bad splx, bad bad badTheo de Raadt
1996-06-02Fix accident in last commitNiklas Hallqvist
1996-06-02shut up GCC -Wall about /* inside a commentNiklas Hallqvist
1996-05-27if_name -> if_xnameTheo de Raadt
1996-05-16drom NetBSD PR#2411:Michael Shalayeff
add bcast support, do if_flags setable, minor cleanup.
1996-05-10if_name/if_unit -> if_xname/if_softcTheo de Raadt
1996-04-24sorry, folks. cut&paste bug happened.Michael Shalayeff
1996-04-24Add IPX support.Michael Shalayeff
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1996-02-21fixed bug in debugging code, so it'll compiles now w/o TUN_DEBUGMichael Shalayeff
enabled.
1996-02-20bug fixes, speedups. multiple AFs support.Michael Shalayeff
bpf fixes.
1995-12-15use m_pkthdr.len for FIONREAD, correctly indicates how much data is availableTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt