Files
poky/meta/recipes-connectivity/libpcap/libpcap-1.3.0/ieee80215-arphrd.patch
Cristian Iorga 3ca4f1740d libpcap: upgrade to ver. 1.3
(From OE-Core rev: 3f0cc742ea5d4788df26bb0592c294e5a67e1093)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-26 14:55:20 +01:00

25 lines
773 B
Diff

Upstream-Status: Pending
Index: libpcap-1.0.0/pcap-linux.c
===================================================================
--- libpcap-1.0.0.orig/pcap-linux.c 2009-01-28 11:58:54.000000000 +0300
+++ libpcap-1.0.0/pcap-linux.c 2009-01-28 11:59:04.000000000 +0300
@@ -1616,6 +1616,17 @@
* so let's use "Linux-cooked" mode. Jean II */
//handle->md.cooked = 1;
break;
+#ifndef ARPHRD_IEEE80215
+#define ARPHRD_IEEE80215 805
+#endif
+#ifndef ARPHRD_IEEE80215_PHY
+#define ARPHRD_IEEE80215_PHY 806
+#endif
+
+ case ARPHRD_IEEE80215:
+ case ARPHRD_IEEE80215_PHY:
+ handle->linktype = DLT_IEEE802_15_4;
+ break;
/* ARPHRD_LAPD is unofficial and randomly allocated, if reallocation
* is needed, please report it to <daniele@orlandi.com> */