diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-16 11:52:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-16 11:52:10 +0000 |
commit | 1351b6b9bc9a1cba6c3093b0be6df183bb909da0 (patch) | |
tree | b49949e16724a7ba5a123e808963ced252b011ae /sys/net/if_tun.h | |
parent | 37ff64ed880153028858c2fdbac9861faa23dcbe (diff) |
drom NetBSD PR#2411:
add bcast support, do if_flags setable, minor cleanup.
Diffstat (limited to 'sys/net/if_tun.h')
-rw-r--r-- | sys/net/if_tun.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/sys/net/if_tun.h b/sys/net/if_tun.h index 34ee3ee707b..d92e910ab96 100644 --- a/sys/net/if_tun.h +++ b/sys/net/if_tun.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tun.h,v 1.3 1996/04/21 22:28:36 deraadt Exp $ */ +/* $OpenBSD: if_tun.h,v 1.4 1996/05/16 11:52:09 mickey Exp $ */ /* * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk> @@ -19,8 +19,8 @@ #ifndef _NET_IF_TUN_H_ #define _NET_IF_TUN_H_ -struct tun_softc { - u_short tun_flags; /* misc flags */ +#include <sys/ioccom.h> + #define TUN_OPEN 0x0001 #define TUN_INITED 0x0002 #define TUN_RCOLL 0x0004 @@ -29,18 +29,11 @@ struct tun_softc { #define TUN_RWAIT 0x0040 #define TUN_ASYNC 0x0080 #define TUN_NBIO 0x0100 +#define TUN_BRDADDR 0x0200 +#define TUN_STAYUP 0x0400 #define TUN_READY (TUN_OPEN | TUN_INITED | TUN_IASET) - struct ifnet tun_if; /* the interface */ - int tun_pgrp; /* the process group - if any */ - struct selinfo tun_rsel; /* read select */ - struct selinfo tun_wsel; /* write select (not used) */ -#if NBPFILTER > 0 - caddr_t tun_bpf; -#endif -}; - struct tunnel_header { u_char tun_af; /* adress family */ @@ -58,6 +51,7 @@ struct tuninfo { u_int mtu; u_short type; + u_short flags; u_int baudrate; }; #define TUNSIFINFO _IOW('t', 91, struct tuninfo) |