diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-11-02 16:20:04 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-11-02 16:20:04 +0000 |
commit | 2f701df9b3a61fb427ff6c5d071e4064f738bc1d (patch) | |
tree | bd51cf7bbaf14c13f6ed34068e96e9f271121f92 | |
parent | 4b09052d0fbd24cbbd70a624260d02d0867a55b8 (diff) |
- 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.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/tcpdump/print-pfsync.c b/usr.sbin/tcpdump/print-pfsync.c index 378a9161481..97aedb533dc 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-pfsync.c,v 1.8 2003/06/21 09:07:00 djm Exp $"; + "@(#) $Header: /cvs/OpenBSD/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: |