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

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