From c14760c27b30e0e6821d3afccccd572582d73526 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 23 Jan 2000 01:48:19 +0000 Subject: 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. --- usr.sbin/ppp/tun.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'usr.sbin/ppp/tun.h') 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); -- cgit v1.1