Blame SOURCES/0001-NFLOG-don-t-crash-trying-to-filter-at-link-layer.patch

9b1536
From 676cf8a61ed240d0a86d471ef419f45ba35dba80 Mon Sep 17 00:00:00 2001
9b1536
From: Denis Ovsienko <infrastation@yandex.ru>
9b1536
Date: Thu, 5 Dec 2013 14:54:14 +0400
9b1536
Subject: [PATCH] NFLOG: don't crash trying to filter at link layer
9b1536
9b1536
Before:
9b1536
9b1536
@ tcpdump -i nflog icmp
9b1536
tcpdump: WARNING: SIOCGIFADDR: nflog: No such device
9b1536
Aborted (core dumped)
9b1536
9b1536
After:
9b1536
9b1536
@ tcpdump -i nflog icmp
9b1536
tcpdump: WARNING: SIOCGIFADDR: nflog: No such device
9b1536
tcpdump: NFLOG link-layer type filtering not implemented
9b1536
---
9b1536
 gencode.c | 7 +++++++
9b1536
 1 file changed, 7 insertions(+)
9b1536
9b1536
diff --git a/gencode.c b/gencode.c
9b1536
index 7bb07fb..d58ea30 100644
9b1536
--- a/gencode.c
9b1536
+++ b/gencode.c
9b1536
@@ -3410,6 +3410,13 @@ gen_linktype(proto)
9b1536
 
9b1536
 	case DLT_AX25_KISS:
9b1536
 		bpf_error("AX.25 link-layer type filtering not implemented");
9b1536
+
9b1536
+	case DLT_NFLOG:
9b1536
+		/* Using the fixed-size NFLOG header it is possible to tell only
9b1536
+		 * the address family of the packet, other meaningful data is
9b1536
+		 * either missing or behind TLVs.
9b1536
+		 */
9b1536
+		bpf_error("NFLOG link-layer type filtering not implemented");
9b1536
 	}
9b1536
 
9b1536
 	/*
9b1536
-- 
9b1536
1.8.4.2
9b1536