diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-14 16:40:07 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-21 12:40:08 +0000 |
commit | 98b9c17f2c236e1a23d9c74d93cb693b4d7b4d61 (patch) | |
tree | 1e112129e1a247dac8d28ab5da238ccc90e28a8d /meta/recipes-connectivity/libpcap/libpcap-1.2.1/ieee80215-arphrd.patch | |
parent | b42e6dbd4c3a780fd9221097b1719a1d62ce4284 (diff) | |
download | openembedded-core-98b9c17f2c236e1a23d9c74d93cb693b4d7b4d61.tar.gz openembedded-core-98b9c17f2c236e1a23d9c74d93cb693b4d7b4d61.tar.bz2 openembedded-core-98b9c17f2c236e1a23d9c74d93cb693b4d7b4d61.tar.xz openembedded-core-98b9c17f2c236e1a23d9c74d93cb693b4d7b4d61.zip |
libpcap: upgrade to 1.2.1
Signed-off-by: Shane Wang <shane.wang@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap-1.2.1/ieee80215-arphrd.patch')
-rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap-1.2.1/ieee80215-arphrd.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap-1.2.1/ieee80215-arphrd.patch b/meta/recipes-connectivity/libpcap/libpcap-1.2.1/ieee80215-arphrd.patch new file mode 100644 index 000000000..2f5cd213b --- /dev/null +++ b/meta/recipes-connectivity/libpcap/libpcap-1.2.1/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> */ |