X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/acd66dee76f22deca896f2760b2989428af1971d..5b0329a9e755e860c3ac8cd6cf383f58261e445d:/interface.h diff --git a/interface.h b/interface.h index aa3954f5..075b78fe 100644 --- a/interface.h +++ b/interface.h @@ -97,6 +97,14 @@ extern char *program_name; /* used to generate self-identifying messages */ extern int32_t thiszone; /* seconds offset from gmt to local time */ +typedef u_int (*if_ndo_printer)(struct netdissect_options *ndo, + const struct pcap_pkthdr *, const u_char *); +typedef u_int (*if_printer)(const struct pcap_pkthdr *, const u_char *); + +extern if_ndo_printer lookup_ndo_printer(int); +extern if_printer lookup_printer(int); + + /* * True if "l" bytes of "var" were captured. * @@ -314,6 +322,7 @@ extern u_int bt_if_print(const struct pcap_pkthdr *, const u_char *); extern u_int usb_linux_48_byte_print(const struct pcap_pkthdr *, const u_char *); extern u_int usb_linux_64_byte_print(const struct pcap_pkthdr *, const u_char *); + #ifdef INET6 extern void ip6_opt_print(const u_char *, int); extern int hbhopt_print(const u_char *);