summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.h
AgeCommit message (Collapse)Author
2007-02-06Change the behaviour of tun(4) on close.Claudio Jeker
- if the interface was auto-created by opening a /dev/tun* device it will auto-destroy on close. This is comparable to ifconfig tun0 destroy and will remove all routes and addresses associated with the interface. - if the interface was created by ifconfig(8) or hostname.if(5) the interface is persistent -- it is just marked as not running. Especially routes are no longer removed when the interface is closed. This is useful for static setups like the server side of a ssh vpn or static qemu session. This behaviour is more logic then the half done cleanup that is currently done. OK mpf@
2006-08-20if_tun.c also has this comment so remove duplicate; ok jmc@ krw@Kevin Steves
2004-06-25Add tap aka layer 2 tunneling support to tun(4). It can be enabled by settingClaudio Jeker
the link0 flag via ifconfig(8). OK markus@, canacar@ also tested by ish@
2002-12-10renumber the get/set debug ioctls for they conflict w/ ppp, we do not keep ↵Michael Shalayeff
the O versions since these are debugging only and should not affect normal functionality; deraadt@ ok
2002-12-06Replace license with something that's actually free.Nathan Binkert
Approved by original author. Julian.Onions@nexor.co.uk
2001-06-09By popular demand, protect from multiple inclusion, and fix to use theAngelos D. Keromytis
same naming style.
2001-03-05TUNSIFMODE ioctl (from NetBSD)Angelos D. Keromytis
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-08-02pass address family as host-byte-order u_int32_t. this fixes bpf. add aTheo de Raadt
note to the bottom of tun.4 to indicate that this is a binary incompatibility with older versions, and describe all 3 revisions this has gone through. everyone -- recompile your code that uses tun.
1997-07-29indentTheo de Raadt
1996-05-16drom NetBSD PR#2411:Michael Shalayeff
add bcast support, do if_flags setable, minor cleanup.
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-02-20bug fixes, speedups. multiple AFs support.Michael Shalayeff
bpf fixes.
1995-10-18initial import of NetBSD treeTheo de Raadt