summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-01-23 01:47:12 +0000
committerbrian <brian@FreeBSD.org>2000-01-23 01:47:12 +0000
commita186cbef4efa422f53ee988f1a9c59d97e0656b9 (patch)
treede260c653fc3296e376c6b3533df8b262fb444cc /sys/net/if_tun.h
parent2611eb5bc02fb66ca8bf95d1edb225358a76748c (diff)
downloadFreeBSD-src-a186cbef4efa422f53ee988f1a9c59d97e0656b9.zip
FreeBSD-src-a186cbef4efa422f53ee988f1a9c59d97e0656b9.tar.gz
Implement TUN[GS]IFHEAD ioctls. Passing a non-zero int to TUNSIFHEAD
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.
Diffstat (limited to 'sys/net/if_tun.h')
-rw-r--r--sys/net/if_tun.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tun.h b/sys/net/if_tun.h
index 273bb30e..185930a 100644
--- a/sys/net/if_tun.h
+++ b/sys/net/if_tun.h
@@ -42,5 +42,7 @@ struct tuninfo {
#define TUNSLMODE _IOW('t', 93, int)
#define TUNSIFMODE _IOW('t', 94, int)
#define TUNSIFPID _IO('t', 95)
+#define TUNSIFHEAD _IOW('t', 96, int)
+#define TUNGIFHEAD _IOR('t', 97, int)
#endif /* !_NET_IF_TUN_H_ */
OpenPOWER on IntegriCloud