diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-26 09:14:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-26 09:14:51 +0000 |
commit | f0b182f9d9696e667725d437a0b5229ff27bbcda (patch) | |
tree | 9906833c64f6ccb692e2ee62b410b81ddbd5641f /usr.sbin/tcpdump/print-null.c | |
parent | a12e9c046bba20015516fbd9444e1a63f4e25ca9 (diff) |
convert DLT_LOOP header to network-order u_int32_t
Diffstat (limited to 'usr.sbin/tcpdump/print-null.c')
-rw-r--r-- | usr.sbin/tcpdump/print-null.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-null.c b/usr.sbin/tcpdump/print-null.c index 3be3383b1d3..62340b73926 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-null.c,v 1.7 1997/07/25 20:12:26 mickey Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-null.c,v 1.8 1998/06/26 09:14:50 deraadt Exp $ (LBL)"; #endif #include <sys/param.h> @@ -109,7 +109,7 @@ null_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) if (eflag) null_print(p, length, family); - switch (family) { + switch (ntohl(family)) { case AF_INET: ip_print(pkt, length); break; |