X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a53605c61b1615362347cebf0db7bb54a2ee6ac6..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print.c diff --git a/print.c b/print.c index 4417a4fa..7460b777 100644 --- a/print.c +++ b/print.c @@ -39,6 +39,8 @@ #include "print.h" #include "netdissect-alloc.h" +#include "pcap-missing.h" + struct printer { if_printer f; int type; @@ -64,7 +66,7 @@ static const struct printer printers[] = { #ifdef DLT_NETANALYZER_TRANSPARENT { netanalyzer_transparent_if_print, DLT_NETANALYZER_TRANSPARENT }, #endif -#if defined(DLT_NFLOG) && defined(HAVE_PCAP_NFLOG_H) +#ifdef DLT_NFLOG { nflog_if_print, DLT_NFLOG}, #endif #ifdef DLT_CIP @@ -83,7 +85,7 @@ static const struct printer printers[] = { #ifdef DLT_APPLE_IP_OVER_IEEE1394 { ap1394_if_print, DLT_APPLE_IP_OVER_IEEE1394 }, #endif -#if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H) +#ifdef DLT_BLUETOOTH_HCI_H4_WITH_PHDR { bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR}, #endif #ifdef DLT_LANE8023 @@ -126,6 +128,9 @@ static const struct printer printers[] = { #ifdef DLT_LINUX_SLL { sll_if_print, DLT_LINUX_SLL }, #endif +#ifdef DLT_LINUX_SLL2 + { sll2_if_print, DLT_LINUX_SLL2 }, +#endif #ifdef DLT_FR { fr_if_print, DLT_FR }, #endif @@ -526,9 +531,3 @@ ndo_set_function_pointers(netdissect_options *ndo) ndo->ndo_error=ndo_error; ndo->ndo_warning=ndo_warning; } -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 8 - * End: - */