summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2003-11-02 16:20:03 +0000
committermcbride <mcbride@openbsd.org>2003-11-02 16:20:03 +0000
commit841d982b14ad19657034bb69132dec73891201e4 (patch)
tree3b0307eb458d278765d179e1dc29da7e4ff75b1d
parentTypo; #ifdef INET not INET6. (diff)
downloadwireguard-openbsd-841d982b14ad19657034bb69132dec73891201e4.tar.xz
wireguard-openbsd-841d982b14ad19657034bb69132dec73891201e4.zip
- newline before printing first state (so they all line up and the first
state doesn't wrap) - No need to print the rule number, that's included in the -v output. ok dhartmei@ canacar@
-rw-r--r--usr.sbin/tcpdump/print-pfsync.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c
index d1477ff2efb..460bf538059 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.8 2003/06/21 09:07:00 djm Exp $ */
+/* $OpenBSD: print-pfsync.c,v 1.9 2003/11/02 16:20:03 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.8 2003/06/21 09:07:00 djm Exp $";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-pfsync.c,v 1.9 2003/11/02 16:20:03 mcbride Exp $";
#endif
#include <sys/param.h>
@@ -90,9 +90,9 @@ pfsync_if_print(u_char *user, const struct pcap_pkthdr *h,
hdr->version, hdr->count);
if (hdr->action < PFSYNC_ACT_MAX)
- printf("%s: ", pfsync_acts[hdr->action]);
+ printf("%s:\n", pfsync_acts[hdr->action]);
else
- printf("%d?: ", hdr->action);
+ printf("%d?:\n", hdr->action);
flags = 0;
if (vflag)
@@ -124,8 +124,6 @@ pfsync_if_print(u_char *user, const struct pcap_pkthdr *h,
st.log = s->log;
st.allow_opts = s->allow_opts;
- printf("rule %d ", st.rule.nr);
-
print_state(&st, flags);
}
out: