diff options
author | Luiz Souza <luiz@netgate.com> | 2017-07-12 12:03:26 -0500 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-07-12 12:28:53 -0500 |
commit | 7ad407b55d3c94fcc344324f708c7a472f7822c5 (patch) | |
tree | 5d36206edb74256260493749fae8f63c0cba8f92 /contrib/tcpdump/print-pfsync.c | |
parent | b91e8edec6ef973706ceba5985379a0aded6a5aa (diff) | |
download | FreeBSD-src-7ad407b55d3c94fcc344324f708c7a472f7822c5.zip FreeBSD-src-7ad407b55d3c94fcc344324f708c7a472f7822c5.tar.gz |
Fix a few bugs in the commit 01a697b38d55406857d04f6b92d9aaf15e492384
Importing pfSense patch tcpdump.pfsync.diff
(cherry picked from commit 3df95bffa4cbfeaae97e1497edef7a4775a868a4)
Diffstat (limited to 'contrib/tcpdump/print-pfsync.c')
-rw-r--r-- | contrib/tcpdump/print-pfsync.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/tcpdump/print-pfsync.c b/contrib/tcpdump/print-pfsync.c index 605f3c1..9159ad2 100644 --- a/contrib/tcpdump/print-pfsync.c +++ b/contrib/tcpdump/print-pfsync.c @@ -74,9 +74,8 @@ pfsync_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, p + sizeof(struct pfsync_header), caplen - sizeof(struct pfsync_header)); out: - if (xflag) { - default_print((const u_char *)p, caplen); - } + if (!ndo->ndo_suppress_default_print) + ND_DEFAULTPRINT(p, caplen); safeputchar(ndo, '\n'); return (caplen); } |