diff --git a/tcpdump.c b/tcpdump.c index c60cb6b4..cc250143 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -290,6 +290,12 @@ static struct printer printers[] = { #endif #if defined(HAVE_PCAP_USB_H) && defined(DLT_USB_LINUX_MMAPPED) { usb_linux_print, DLT_USB_LINUX_MMAPPED}, +#endif +#ifdef DLT_IPV4 + { raw_if_print, DLT_IPV4 }, +#endif +#ifdef DLT_IPV6 + { raw_if_print, DLT_IPV6 }, #endif { NULL, 0 }, }; @@ -297,12 +303,6 @@ static struct printer printers[] = { static struct ndo_printer ndo_printers[] = { #ifdef DLT_IPNET { ipnet_if_print, DLT_IPNET }, -#endif -#ifdef DLT_IPV4 - { raw_if_print, DLT_IPV4 }, -#endif -#ifdef DLT_IPV6 - { raw_if_print, DLT_IPV6 }, #endif { NULL, 0 }, };