X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4cc892cbff1843cd735ff71297b0ee006a74ceab..f12dbbcd916fbc735fc5b12143b20aee044129ea:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index a9afa8fe..37ac27a7 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -115,7 +115,8 @@ static void ndo_default_print(netdissect_options *, const u_char *, u_int); static void dump_packet_and_trunc(u_char *, const struct pcap_pkthdr *, const u_char *); static void dump_packet(u_char *, const struct pcap_pkthdr *, const u_char *); static void droproot(const char *, const char *); -static void ndo_error(netdissect_options *ndo, const char *fmt, ...); +static void ndo_error(netdissect_options *ndo, const char *fmt, ...) + __attribute__ ((noreturn, format (printf, 2, 3))); static void ndo_warning(netdissect_options *ndo, const char *fmt, ...); #ifdef SIGINFO @@ -313,6 +314,12 @@ static struct ndo_printer ndo_printers[] = { #endif #ifdef DLT_PPI { ppi_if_print, DLT_PPI }, +#endif +#ifdef DLT_ETHERNET_HILSCHER + { ether_hilscher_if_print, DLT_ETHERNET_HILSCHER }, +#endif +#ifdef DLT_ETHERNET_HILSCHER_TRANSPARENT + { ether_hilscher_transparent_if_print, DLT_ETHERNET_HILSCHER_TRANSPARENT }, #endif { NULL, 0 }, };