summaryrefslogtreecommitdiff
path: root/recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch
diff options
context:
space:
mode:
authorMarco Cavallini <m.cavallini@koansoftware.com>2010-07-24 09:30:34 +0200
committerMarco Cavallini <m.cavallini@koansoftware.com>2010-07-24 09:30:34 +0200
commit5b4a88983b3545f8f894fcbaa420b884f4e13631 (patch)
treed3e05a16826624d7ca98ab5ff3e21b4b1777f9b7 /recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch
parentede6af5e1d519f74fc101e9cc9ab76b446d6f19b (diff)
parentd4f0fb310f7d40f7a50f50fb12083fa258aa1eed (diff)
Merge branch 'org.openembedded.dev' of git://git.openembedded.org/openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch')
-rw-r--r--recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch b/recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch
new file mode 100644
index 0000000000..f29c7cb54c
--- /dev/null
+++ b/recipes/libpcap/libpcap-1.1.1/ieee80215-arphrd.patch
@@ -0,0 +1,22 @@
+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 804
++#endif
++#ifndef ARPHRD_IEEE80215_PHY
++#define ARPHRD_IEEE80215_PHY 805
++#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> */