summaryrefslogtreecommitdiff
path: root/meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2011-12-23 14:27:24 +0800
committerSaul Wold <sgw@linux.intel.com>2012-01-02 20:26:23 -0800
commit2a76f0731f5e2ad4b941197bdf59c66d52ec9131 (patch)
tree5a295631d188234da8cf82a31f4426216d2897e3 /meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch
parent0695487407d25a8d9d25894b20ca1b19a7f55643 (diff)
downloadopenembedded-core-2a76f0731f5e2ad4b941197bdf59c66d52ec9131.tar.gz
openembedded-core-2a76f0731f5e2ad4b941197bdf59c66d52ec9131.tar.bz2
openembedded-core-2a76f0731f5e2ad4b941197bdf59c66d52ec9131.tar.xz
openembedded-core-2a76f0731f5e2ad4b941197bdf59c66d52ec9131.zip
libpcap: upgrade to 1.2.0
This patch is to upgrade libpcap to 1.2.0. The values of the macro definitions are duplicated with the new code, so change them into other values. Signed-off-by: Shane Wang <shane.wang@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch')
-rw-r--r--meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch b/meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch
new file mode 100644
index 000000000..2f5cd213b
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap-1.2.0/ieee80215-arphrd.patch
@@ -0,0 +1,24 @@
+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> */