diff options
author | Luiz Amaral <email@luiz.eng.br> | 2023-11-08 15:12:14 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-11-08 15:12:14 +0000 |
commit | 85247ee6a2ba1c2dd0053e9be9055efa4be1438e (patch) | |
tree | 39245ae0b9627dfdb9acef6a078b1b0b70efa3b9 | |
parent | d0941ed9b5c39d92d0aa75bc253506cb59a2e9a1 (diff) | |
download | src-85247ee6a2ba1c2dd0053e9be9055efa4be1438e.tar.gz src-85247ee6a2ba1c2dd0053e9be9055efa4be1438e.zip |
tcpdump: decode pfsync packets on network interfaces
When print-ip-demux.c was introduced on ee67461e, the pfsync_ip_print
function was missed, causing tcpdump to treat pfsync packets on network
interfaces as an unknown protocol.
MFC after: 1 week
Sponsored by: InnoGames GmbH
Differential Revision: https://reviews.freebsd.org/D42504
-rw-r--r-- | contrib/tcpdump/print-ip-demux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/tcpdump/print-ip-demux.c b/contrib/tcpdump/print-ip-demux.c index a0a6fbd11f3a..758601910881 100644 --- a/contrib/tcpdump/print-ip-demux.c +++ b/contrib/tcpdump/print-ip-demux.c @@ -216,6 +216,12 @@ again: } break; +#ifdef HAVE_NET_IF_PFLOG_H + case IPPROTO_PFSYNC: + pfsync_ip_print(ndo, bp, length); + break; +#endif + case IPPROTO_NONE: ND_PRINT("no next header"); break; |