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
This commit is contained in:
Luiz Amaral 2023-11-08 16:12:14 +01:00 committed by Kristof Provost
parent d0941ed9b5
commit 85247ee6a2

View file

@ -216,6 +216,12 @@ ip_demux_print(netdissect_options *ndo,
}
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;