mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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:
parent
85b3169b78
commit
1ad8d2ee1f
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue