summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/tun.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-27 12:03:43 +0000
committerbrian <brian@FreeBSD.org>1998-06-27 12:03:43 +0000
commit2421d3c06a426e21d9cd7410d263f5f2e84e4858 (patch)
tree722646e28bab5a6109650805323f3c8a2de39d22 /usr.sbin/ppp/tun.h
parent45ae42c55e09518d1fa7d192d1264b880d8ff707 (diff)
downloadFreeBSD-src-2421d3c06a426e21d9cd7410d263f5f2e84e4858.zip
FreeBSD-src-2421d3c06a426e21d9cd7410d263f5f2e84e4858.tar.gz
``struct tunnel_header'' -> u_int32_t in OpenBSD.
struct tunnel_header is going soon. Suggested by: Theo
Diffstat (limited to 'usr.sbin/ppp/tun.h')
-rw-r--r--usr.sbin/ppp/tun.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/tun.h b/usr.sbin/ppp/tun.h
index 2745686..0ed879f 100644
--- a/usr.sbin/ppp/tun.h
+++ b/usr.sbin/ppp/tun.h
@@ -23,19 +23,19 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: tun.h,v 1.3.4.3 1998/05/06 23:50:25 brian Exp $
+ * $Id: tun.h,v 1.4 1998/05/21 21:48:55 brian Exp $
*/
struct tun_data {
#ifdef __OpenBSD__
- struct tunnel_header head;
+ u_int32_t 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))
+#define tun_fill_header(f,proto) do { (f).head = (proto); } while (0)
+#define tun_check_header(f,proto) ((f).head == (proto))
#else
#define tun_fill_header(f,proto) do { } while (0)
#define tun_check_header(f,proto) (1)
OpenPOWER on IntegriCloud