summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-05 00:44:11 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-05 00:44:11 +0000
commit219944e7e61787c77586770d1246d8a573cfc1c6 (patch)
treec608d22f56e9e49aa6a50b1d838c59aa73e4b47d /usr.sbin
parent6aab52a1da373667e4ae7e00fb31c81af82bebef (diff)
Make tcpdump -x work with pfsync.
ok dhartmei@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index 97aedb533dc..8a6a51884b3 100644
--- a/usr.sbin/tcpdump/print-pfsync.c
+++ b/usr.sbin/tcpdump/print-pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-pfsync.c,v 1.9 2003/11/02 16:20:03 mcbride Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.10 2003/11/05 00:44:10 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.9 2003/11/02 16:20:03 mcbride Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.10 2003/11/05 00:44:10 mcbride Exp $";
#endif
#include <sys/param.h>
@@ -127,5 +127,7 @@ pfsync_if_print(u_char *user, const struct pcap_pkthdr *h,
print_state(&st, flags);
}
out:
+ if (xflag)
+ default_print((const u_char *)hdr, caplen);
putchar('\n');
}