]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-nflog.c
Add program_name field in the netdissect_options structure
[tcpdump] / print-nflog.c
index cd0428bc2862b24fd00e49e01fff4d2c826bfe4a..b096e9ec2fc5312c3f967ad00b08682248a1ae7e 100644 (file)
  * DAMAGE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 
 #if defined(DLT_NFLOG) && defined(HAVE_PCAP_NFLOG_H)
 #include <pcap/nflog.h>
@@ -145,11 +144,11 @@ nflog_if_print(netdissect_options *ndo,
                ip_print(ndo, p, length);
                break;
 
-#ifdef INET6
+#ifdef AF_INET6
        case AF_INET6:
                ip6_print(ndo, p, length);
                break;
-#endif /*INET6*/
+#endif /* AF_INET6 */
 
        default:
                if (!ndo->ndo_eflag)