summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/interface.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-10-05 07:51:21 +0000
committerglebius <glebius@FreeBSD.org>2012-10-05 07:51:21 +0000
commit9aada32871f50c506bf460d8e5c36f8ce516a4f4 (patch)
treeed1959c16458a8caf1fac5f2a1e73aa02c3dde91 /contrib/tcpdump/interface.h
parent031c00ccd680f5db61a5fc8f268581709717049b (diff)
downloadFreeBSD-src-9aada32871f50c506bf460d8e5c36f8ce516a4f4.zip
FreeBSD-src-9aada32871f50c506bf460d8e5c36f8ce516a4f4.tar.gz
Provide ability for printing and decoding pfsync(4) traffic. This
doesn't mean supporting IFT_PFSYNC (which I hope will eventually die). This means decoding packets with IP protocol of 240 caught on any normal interface like Ethernet. The code is based on couple of files from OpenBSD, significantly modified by myself. Parser differentiates for four levels of verbosity: no -v, -v, -vv and -vvv. We don't yet forward this code upstream, because currently it strongly relies on if_pfsync.h and even on pfvar.h. I hope that this can be fixed in future. Reviewed by: gnn, delphij
Diffstat (limited to 'contrib/tcpdump/interface.h')
-rw-r--r--contrib/tcpdump/interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/tcpdump/interface.h b/contrib/tcpdump/interface.h
index 18668a2..133037a 100644
--- a/contrib/tcpdump/interface.h
+++ b/contrib/tcpdump/interface.h
@@ -183,6 +183,7 @@ extern void dvmrp_print(const u_char *, u_int);
extern void egp_print(const u_char *, u_int);
extern u_int enc_if_print(const struct pcap_pkthdr *, const u_char *);
extern u_int pflog_if_print(const struct pcap_pkthdr *, const u_char *);
+extern void pfsync_ip_print(const u_char *, u_int);
extern u_int arcnet_if_print(const struct pcap_pkthdr *, const u_char *);
extern u_int arcnet_linux_if_print(const struct pcap_pkthdr *, const u_char *);
extern u_int token_print(const u_char *, u_int, u_int);
OpenPOWER on IntegriCloud