X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/acd66dee76f22deca896f2760b2989428af1971d..5b0329a9e755e860c3ac8cd6cf383f58261e445d:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 5300d920..10b6239d 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -133,10 +133,6 @@ RETSIGTYPE requestinfo(int); static void info(int); static u_int packets_captured; -typedef u_int (*if_printer)(const struct pcap_pkthdr *, const u_char *); -typedef u_int (*if_ndo_printer)(struct netdissect_options *ndo, - const struct pcap_pkthdr *, const u_char *); - struct printer { if_printer f; int type; @@ -314,11 +310,14 @@ static struct ndo_printer ndo_printers[] = { #endif #ifdef DLT_IEEE802_15_4_NOFCS { ieee802_15_4_if_print, DLT_IEEE802_15_4_NOFCS }, +#endif +#ifdef DLT_PPI + { ppi_if_print, DLT_PPI }, #endif { NULL, 0 }, }; -static if_printer +if_printer lookup_printer(int type) { struct printer *p; @@ -331,7 +330,7 @@ lookup_printer(int type) /* NOTREACHED */ } -static if_ndo_printer +if_ndo_printer lookup_ndo_printer(int type) { struct ndo_printer *p;