aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_tun.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/ Similar commit in current: (cherry picked from commit 95ee2897e98f)
* if_tuntap(4): Add TUNGIFNAMEKyle Evans2019-07-251-0/+1
| | | | | | | | | This effectively just moves TAPGIFNAME into common ioctl territory. MFC after: 3 days Notes: svn path=/head/; revision=350336
* Allow an MTU of 65535 bytes to be set via TUN[SG]IFINFO. This requiresMichael Tuexen2016-05-241-2/+2
| | | | | | | | | | | | changing the type on the mtu field in struct tuninfo from short to unsigned short. This is used, for example, by packetdrill to test with MTUs up to the maximum value. Differential Revision: 6452 Notes: svn path=/head/; revision=300603
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139823
* Implement TUN[GS]IFHEAD ioctls. Passing a non-zero int to TUNSIFHEADBrian Somers2000-01-231-0/+2
| | | | | | | | | | | | | | tells that tun unit to prepend a four byte address family to packets queued for tunread() and to expect a four byte address family at the front of data received by tunwrite(). We queue any protocol received from the interface for tunread(), but only accept INET, INET6, IPX and NETATALK from tunwrite(). There is support for Xerox's NS stuff, but AFAICT config(8) doesn't ever define NS. Notes: svn path=/head/; revision=56410
* Add a new TUNSIFPID ioctl to update the tun_pid (recorded inBrian Somers2000-01-211-0/+1
| | | | | | | tunopen) with the current pid. Notes: svn path=/head/; revision=56349
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Implement TUNSIFMODE and TUNSLMODE.Dag-Erling Smørgrav1999-03-241-1/+3
| | | | | | | Submitted by: Alfred Perlstein <bright@cygnus.rush.net> Notes: svn path=/head/; revision=45014
* Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108.Dag-Erling Smørgrav1998-04-171-2/+2
| | | | Notes: svn path=/head/; revision=35256
* Correct $Id$Brian Somers1998-01-261-1/+1
| | | | Notes: svn path=/head/; revision=32809
* Move softc stuff into if_tunvar.hBrian Somers1998-01-111-17/+1
| | | | | | | | | | Suggested by: Peter Wemm <peter@netplex.com.au> Hinted at by: Bruce Evans <bde@FreeBSD.org>   Notes: svn path=/head/; revision=32441
* Removed now-unused blocking mode flag.Bruce Evans1997-11-181-1/+0
| | | | Notes: svn path=/head/; revision=31284
* As the Tunnel device has no real inherrent MRU limit,Julian Elischer1997-06-111-1/+4
| | | | | | | | | | | so don't enforce the MTU as an MRU. Allow bidirectional ppp MTU negotiation, by checking against a differnt figure for MRU. Make it large enough for ATM frames at least. Submitted by: archie@whistle.com (archie cobbs) Notes: svn path=/head/; revision=26566
* Change default tun MTU back to 1500.Bill Fenner1996-12-161-2/+2
| | | | | | | | | | Use the interface MTU instead of the constant when deciding what packets to accept. Allow using the SIOCSIFMTU ioctl (e.g. "ifconfig tun0 mtu XXX") to set the MTU. Notes: svn path=/head/; revision=20559
* 2 small changes:Julian Elischer1996-12-021-1/+1
| | | | | | | | | | | | | | | | | 1/ increase the tun MTU from 1500 to 1600 to allow it to be used with packets formatted according to RFC1490 and RFC1717 2/ allow the tsleep() when reading, to be interruptable by signals so that one can now do: od -xc </dev/tun0 to dump packets for debugging without getting hung. Passed on by: Archie@whistle.com (archie Cobbs) Nice but not neccessary in 2.2 Notes: svn path=/head/; revision=20098
* Submitted by: archie@whistle.comJulian Elischer1996-08-091-1/+1
| | | | | | | | | | allow a tunnel interface to be openned even if it has no remote address yet. this may be needed if you have used route add default -interface tun0 where the remote end might not even HAVE a number (e.g. netcom links) Notes: svn path=/head/; revision=17487
* Make user-level PPP on-demand with dynamic IP actually work.Andrey A. Chernov1996-03-081-1/+1
| | | | | | | | | | | | | | | | | | Story so fr: 1) PPP on-demand with static IP works. 2) PPP on-demand with dynamic IP says "Host is down" on any IP request The problem is that tun driver check its READY state by *first* ifconfig address. i.e.: set ifaddr <addr> <addr2> works (static IP) and set ifaddr 0 <addr2> not works (dynamic IP) because first address is equal 0. Since tun is always POINTOPOINT interface, dst address is more meaningfull. I change checking to second (dst) address in READY test. PPP on-demand finally works. Notes: svn path=/head/; revision=14421
* Clean up Ethernet drivers:Garrett Wollman1996-02-061-3/+0
| | | | | | | | | | | - fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly Notes: svn path=/head/; revision=13937
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8876
* New user Process PPP based on iij-ppp0.94beta2.Atsushi Murai1995-02-261-27/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Supporting SYNC SIO device (But need a device driver) - add "set speed sync" o Fixing bug for Predictor-1 function. o Add new parameter that re-sent interval for set timeout commands. o Improving RTT (Round Trip Time) and reducing processor time. - Previous Timer service was using polling, and now using SIGALRM ;-) - A 0.94beta2 will not work correctly.... -- Follows are additinal feature not including 0.94beta2 o Support Proxy ARP - add "enable/disable proxy" commands o Marging common routine in CHAP/PAP. o Enhancing LCP/IPCP log information. o Support local Authfication connection on port 300x and tty. - You can set up pair of your "hostname -s" and password in ppp.secret. if either ppp.secret file nor your hostname line don't exist, It will notify a message and working as same as previous version.(Backword compatibility) - If you did set up them, It's allow connection but nothing to do except help and passwd command. - add "passwd yourpasswd" commands o Support afilter - keep Alive filter that a packet can send/receiving according to ifilter/ofilter but doesn't count it as preventing idle timer expires. - Same syntax of other filters. o Fixing bugs reported by current user for previous one. Thanks !! Reviewed by: Atsushi Murai (amurai@spec.co.jp) Notes: svn path=/head/; revision=6735
* (no commit message)Atsushi Murai1995-01-311-0/+72
Notes: svn path=/cvs2svn/branches/R093/; revision=6053