summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch')
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch b/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
new file mode 100644
index 0000000000..2f5cd213bc
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap/ieee80215-arphrd.patch
@@ -0,0 +1,24 @@
1Upstream-Status: Pending
2
3Index: libpcap-1.0.0/pcap-linux.c
4===================================================================
5--- libpcap-1.0.0.orig/pcap-linux.c 2009-01-28 11:58:54.000000000 +0300
6+++ libpcap-1.0.0/pcap-linux.c 2009-01-28 11:59:04.000000000 +0300
7@@ -1616,6 +1616,17 @@
8 * so let's use "Linux-cooked" mode. Jean II */
9 //handle->md.cooked = 1;
10 break;
11+#ifndef ARPHRD_IEEE80215
12+#define ARPHRD_IEEE80215 805
13+#endif
14+#ifndef ARPHRD_IEEE80215_PHY
15+#define ARPHRD_IEEE80215_PHY 806
16+#endif
17+
18+ case ARPHRD_IEEE80215:
19+ case ARPHRD_IEEE80215_PHY:
20+ handle->linktype = DLT_IEEE802_15_4;
21+ break;
22
23 /* ARPHRD_LAPD is unofficial and randomly allocated, if reallocation
24 * is needed, please report it to <daniele@orlandi.com> */