summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/tun.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-01-23 01:48:19 +0000
committerbrian <brian@FreeBSD.org>2000-01-23 01:48:19 +0000
commitc14760c27b30e0e6821d3afccccd572582d73526 (patch)
treeaef40fb40de8ecfcde00e41bbe45982c893c1d84 /usr.sbin/ppp/tun.h
parent8efad4996bb383d485f1c8ae1ac16059954d0132 (diff)
downloadFreeBSD-src-c14760c27b30e0e6821d3afccccd572582d73526.zip
FreeBSD-src-c14760c27b30e0e6821d3afccccd572582d73526.tar.gz
Handle the availability of TUNSIFHEAD. If it's there, use it.
For the moment this is just overhead, but it'll be used for INET6 support later.
Diffstat (limited to 'usr.sbin/ppp/tun.h')
-rw-r--r--usr.sbin/ppp/tun.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/ppp/tun.h b/usr.sbin/ppp/tun.h
index 8cbae71..f8a8289 100644
--- a/usr.sbin/ppp/tun.h
+++ b/usr.sbin/ppp/tun.h
@@ -27,20 +27,10 @@
*/
struct tun_data {
-#ifdef __OpenBSD__
- u_int32_t head;
-#endif
+ u_int32_t family;
u_char data[MAX_MRU];
};
-#ifdef __OpenBSD__
-#define tun_fill_header(f,proto) do { (f).head = htonl(proto); } while (0)
-#define tun_check_header(f,proto) ((f).head == htonl(proto))
-#else
-#define tun_fill_header(f,proto) do { } while (0)
-#define tun_check_header(f,proto) (1)
-#endif
-
struct bundle;
extern void tun_configure(struct bundle *, int);
OpenPOWER on IntegriCloud