tcpdump: Reconnect pfsync printer

Fixes:	ee67461e (tpcdump: Update to 4.99.4)

Reported by:	glebius
Reviewed by:	kp
Differential Revision:	https://reviews.freebsd.org/D40578
This commit is contained in:
Joseph Mingrone 2023-06-16 10:40:00 -03:00
parent 85b3169b78
commit 1ad8d2ee1f
No known key found for this signature in database
GPG key ID: 36A40C83B0D6EF9E
3 changed files with 6 additions and 3 deletions

View file

@ -698,7 +698,7 @@ extern int ospf_grace_lsa_print(netdissect_options *, const u_char *, u_int);
extern int ospf_te_lsa_print(netdissect_options *, const u_char *, u_int);
extern void otv_print(netdissect_options *, const u_char *, u_int);
extern void pfsync_ip_print(netdissect_options *, const u_char *, u_int);
extern u_int pfsync_if_print(netdissect_options *, const struct pcap_pkthdr *, const u_char *);
extern void pfsync_if_print(netdissect_options *, const struct pcap_pkthdr *, const u_char *);
extern void pgm_print(netdissect_options *, const u_char *, u_int, const u_char *);
extern void pim_print(netdissect_options *, const u_char *, u_int, const u_char *);
extern void pimv1_print(netdissect_options *, const u_char *, u_int);

View file

@ -57,7 +57,7 @@ static void print_src_dst(netdissect_options *,
const struct pfsync_state_peer *, uint8_t);
static void print_state(netdissect_options *, union pfsync_state_union *, int);
u_int
void
pfsync_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
register const u_char *p)
{
@ -78,7 +78,7 @@ pfsync_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
hex_print(ndo, "\n\t", p, caplen);
}
fn_print_char(ndo, '\n');
return (caplen);
return;
}
void

View file

@ -188,6 +188,9 @@ static const struct printer printers[] = {
#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
{ pflog_if_print, DLT_PFLOG },
#endif
#if defined(DLT_PFSYNC) && defined(HAVE_NET_PFVAR_H)
{ pfsync_if_print, DLT_PFSYNC},
#endif
#ifdef DLT_PKTAP
{ pktap_if_print, DLT_PKTAP },
#endif