summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-nflog.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcpdump/print-nflog.c')
-rw-r--r--contrib/tcpdump/print-nflog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/tcpdump/print-nflog.c b/contrib/tcpdump/print-nflog.c
index 95da4cb..41cbf78 100644
--- a/contrib/tcpdump/print-nflog.c
+++ b/contrib/tcpdump/print-nflog.c
@@ -25,23 +25,24 @@
* DAMAGE.
*/
-#define NETDISSECT_REWORKED
+/* \summary: DLT_NFLOG printer */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
-#include "interface.h"
+#include "netdissect.h"
#if defined(DLT_NFLOG) && defined(HAVE_PCAP_NFLOG_H)
#include <pcap/nflog.h>
static const struct tok nflog_values[] = {
{ AF_INET, "IPv4" },
-#ifdef INET6
+#ifdef AF_INET6
{ AF_INET6, "IPv6" },
-#endif /*INET6*/
+#endif /*AF_INET6*/
{ 0, NULL }
};
@@ -81,7 +82,7 @@ nflog_if_print(netdissect_options *ndo,
return h_size;
}
- if (!(hdr->nflog_version) == 0) {
+ if (hdr->nflog_version != 0) {
ND_PRINT((ndo, "version %u (unknown)", hdr->nflog_version));
return h_size;
}
OpenPOWER on IntegriCloud