diff options
author | brian <brian@FreeBSD.org> | 2000-01-23 01:48:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-01-23 01:48:19 +0000 |
commit | c14760c27b30e0e6821d3afccccd572582d73526 (patch) | |
tree | aef40fb40de8ecfcde00e41bbe45982c893c1d84 /usr.sbin/ppp/tun.h | |
parent | 8efad4996bb383d485f1c8ae1ac16059954d0132 (diff) | |
download | FreeBSD-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.h | 12 |
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); |