tun.h revision 31195
1struct tun_data { 2#ifdef __OpenBSD__ 3 struct tunnel_header head; 4#endif 5 u_char data[MAX_MRU]; 6}; 7 8#ifdef __OpenBSD__ 9#define tun_fill_header(f,proto) do { (f).head.tun_af = (proto); } while (0) 10#define tun_check_header(f,proto) ((f).head.tun_af == (proto)) 11#else 12#define tun_fill_header(f,proto) do { } while (0) 13#define tun_check_header(f,proto) (1) 14#endif 15 16extern void tun_configure(int, int); 17