diff options
Diffstat (limited to 'contrib/tcpdump/print-pfsync.c')
-rw-r--r-- | contrib/tcpdump/print-pfsync.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/tcpdump/print-pfsync.c b/contrib/tcpdump/print-pfsync.c index 67d29cf..eb9aed8 100644 --- a/contrib/tcpdump/print-pfsync.c +++ b/contrib/tcpdump/print-pfsync.c @@ -54,20 +54,21 @@ static void print_src_dst(netdissect_options *, const struct pfsync_state_peer *, uint8_t); static void print_state(netdissect_options *, struct pfsync_state *); -u_int -pfsync_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, +#ifdef notyet +void +pfsync_if_print(u_char *user, const struct pcap_pkthdr *h, register const u_char *p) { u_int caplen = h->caplen; - ts_print(ndo, &h->ts); + ts_print(&h->ts); if (caplen < PFSYNC_HDRLEN) { ND_PRINT((ndo, "[|pfsync]")); goto out; } - pfsync_print(ndo, (struct pfsync_header *)p, + pfsync_print((struct pfsync_header *)p, p + sizeof(struct pfsync_header), caplen - sizeof(struct pfsync_header)); out: @@ -75,8 +76,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) |