Blame SOURCES/0001-Fix-link-type-for-nlmon.patch

9b1536
From 674f2e8bd990be129932c5778d951ffee6eaefbd Mon Sep 17 00:00:00 2001
9b1536
From: Jakub Zawadzki <darkjames@darkjames.pl>
9b1536
Date: Sat, 7 Dec 2013 23:36:47 +0100
9b1536
Subject: [PATCH] Fix link-type for nlmon.
9b1536
9b1536
Before patch:
9b1536
  tcpdump: listening on nlmon0, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
9b1536
9b1536
After patch:
9b1536
  tcpdump: listening on nlmon0, link-type 253, capture size 65535 bytes
9b1536
---
9b1536
 pcap-linux.c | 3 ++-
9b1536
 1 file changed, 2 insertions(+), 1 deletion(-)
9b1536
9b1536
diff --git a/pcap-linux.c b/pcap-linux.c
9b1536
index 8800c96..7c07793 100644
9b1536
--- a/pcap-linux.c
9b1536
+++ b/pcap-linux.c
9b1536
@@ -3195,7 +3195,8 @@ activate_new(pcap_t *handle)
9b1536
 			 * same applies to LAPD capture.
9b1536
 			 */
9b1536
 			if (handle->linktype != DLT_LINUX_IRDA &&
9b1536
-			    handle->linktype != DLT_LINUX_LAPD)
9b1536
+			    handle->linktype != DLT_LINUX_LAPD &&
9b1536
+			    handle->linktype != DLT_NETLINK)
9b1536
 				handle->linktype = DLT_LINUX_SLL;
9b1536
 		}
9b1536
 
9b1536
-- 
9b1536
2.4.3
9b1536