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

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