diff options
author | Renato Botelho <renato@netgate.com> | 2017-02-23 06:41:12 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-02-23 06:41:12 -0300 |
commit | 01a697b38d55406857d04f6b92d9aaf15e492384 (patch) | |
tree | e1d3385224c30e08fd3e71e318aced210cb89022 /contrib/tcpdump/print-pfsync.c | |
parent | 4ef888db25896b2295f521c736ef04aa2e5e64ec (diff) | |
download | FreeBSD-src-01a697b38d55406857d04f6b92d9aaf15e492384.zip FreeBSD-src-01a697b38d55406857d04f6b92d9aaf15e492384.tar.gz |
Importing pfSense patch tcpdump.pfsync.diff
Diffstat (limited to 'contrib/tcpdump/print-pfsync.c')
-rw-r--r-- | contrib/tcpdump/print-pfsync.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/tcpdump/print-pfsync.c b/contrib/tcpdump/print-pfsync.c index 6291333..605f3c1 100644 --- a/contrib/tcpdump/print-pfsync.c +++ b/contrib/tcpdump/print-pfsync.c @@ -57,21 +57,20 @@ 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: @@ -79,8 +78,8 @@ out: default_print((const u_char *)p, caplen); } safeputchar(ndo, '\n'); + return (caplen); } -#endif /* notyet */ void pfsync_ip_print(netdissect_options *ndo , const u_char *bp, u_int len) |