diff options
Diffstat (limited to 'usr.sbin/ppp/tun.h')
-rw-r--r-- | usr.sbin/ppp/tun.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr.sbin/ppp/tun.h b/usr.sbin/ppp/tun.h new file mode 100644 index 0000000..bc495e1 --- /dev/null +++ b/usr.sbin/ppp/tun.h @@ -0,0 +1,16 @@ +struct tun_data { +#ifdef __OpenBSD__ + struct tunnel_header head; +#endif + u_char data[MAX_MRU]; +}; + +#ifdef __OpenBSD__ +#define tun_fill_header(f,proto) do { (f).head.tun_af = (proto); } while (0) +#define tun_check_header(f,proto) ((f).head.tun_af == (proto)) +#else +#define tun_fill_header(f,proto) do { } while (0) +#define tun_check_header(f,proto) (1) +#endif + +extern void tun_configure(int, int); |