diff options
author | 1999-09-16 20:58:44 +0000 | |
---|---|---|
committer | 1999-09-16 20:58:44 +0000 | |
commit | 5205045a72c2ff4df38a5397408efc625454c4b0 (patch) | |
tree | 7174084355ba073811f5fde5d9aa25e7a6ef9283 /usr.sbin/tcpdump/print-null.c | |
parent | Do something sensible with division by 0 in expr. (diff) | |
download | wireguard-openbsd-5205045a72c2ff4df38a5397408efc625454c4b0.tar.xz wireguard-openbsd-5205045a72c2ff4df38a5397408efc625454c4b0.zip |
bring more inline with tcpdump 3.4
Diffstat (limited to 'usr.sbin/tcpdump/print-null.c')
-rw-r--r-- | usr.sbin/tcpdump/print-null.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/tcpdump/print-null.c b/usr.sbin/tcpdump/print-null.c index 4231dec45df..c5598d8348f 100644 --- a/usr.sbin/tcpdump/print-null.c +++ b/usr.sbin/tcpdump/print-null.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-null.c,v 1.9 1999/07/28 20:41:36 jakob Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-null.c,v 1.10 1999/09/16 20:58:47 brad Exp $ (LBL)"; #endif #include <sys/param.h> @@ -50,8 +50,12 @@ struct rtentry; #include <stdio.h> #include <string.h> -#include "addrtoname.h" #include "interface.h" +#include "addrtoname.h" + +#ifndef AF_NS +#define AF_NS 6 /* XEROX NS protocols */ +#endif /* * The DLT_NULL packet header is 4 bytes long. It contains a network @@ -59,10 +63,6 @@ struct rtentry; */ #define NULL_HDRLEN 4 -#ifndef AF_NS -#define AF_NS 6 /* XEROX NS protocols */ -#endif - static void null_print(const u_char *p, u_int length, u_int family) { |