diff options
author | Renato Botelho <renato@netgate.com> | 2017-02-10 06:57:35 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-02-10 07:16:34 -0200 |
commit | 6317ca7fc424cc1a74a0f725f34ec05d1ebb1bd0 (patch) | |
tree | f73ab492efd68f830a6b123975b6e21feea8aca9 /contrib/tcpdump/print-pfsync.c | |
parent | abb72844124d16a7ad83487bf5f12c49b66e60d5 (diff) | |
download | FreeBSD-src-6317ca7fc424cc1a74a0f725f34ec05d1ebb1bd0.zip FreeBSD-src-6317ca7fc424cc1a74a0f725f34ec05d1ebb1bd0.tar.gz |
Importing pfSense patch tcpdump.pfsync.diff
Diffstat (limited to 'contrib/tcpdump/print-pfsync.c')
-rw-r--r-- | contrib/tcpdump/print-pfsync.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/contrib/tcpdump/print-pfsync.c b/contrib/tcpdump/print-pfsync.c index 6291333..9159ad2 100644 --- a/contrib/tcpdump/print-pfsync.c +++ b/contrib/tcpdump/print-pfsync.c @@ -57,30 +57,28 @@ static void print_src_dst(netdissect_options *, const struct pfsync_state_peer *, uint8_t); static void print_state(netdissect_options *, struct pfsync_state *); -#ifdef notyet -void -pfsync_if_print(u_char *user, const struct pcap_pkthdr *h, +u_int +pfsync_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, register const u_char *p) { u_int caplen = h->caplen; - ts_print(&h->ts); + ts_print(ndo, &h->ts); if (caplen < PFSYNC_HDRLEN) { ND_PRINT((ndo, "[|pfsync]")); goto out; } - pfsync_print((struct pfsync_header *)p, + pfsync_print(ndo, (struct pfsync_header *)p, 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); } -#endif /* notyet */ void pfsync_ip_print(netdissect_options *ndo , const u_char *bp, u_int len) |