diff options
Diffstat (limited to 'meta/packages/libpcap/libpcap-1.0.0/ieee80215-arphrd.patch')
-rw-r--r-- | meta/packages/libpcap/libpcap-1.0.0/ieee80215-arphrd.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/packages/libpcap/libpcap-1.0.0/ieee80215-arphrd.patch b/meta/packages/libpcap/libpcap-1.0.0/ieee80215-arphrd.patch new file mode 100644 index 0000000000..f29c7cb54c --- /dev/null +++ b/meta/packages/libpcap/libpcap-1.0.0/ieee80215-arphrd.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Index: libpcap-1.0.0/pcap-linux.c | ||
2 | =================================================================== | ||
3 | --- libpcap-1.0.0.orig/pcap-linux.c 2009-01-28 11:58:54.000000000 +0300 | ||
4 | +++ libpcap-1.0.0/pcap-linux.c 2009-01-28 11:59:04.000000000 +0300 | ||
5 | @@ -1616,6 +1616,17 @@ | ||
6 | * so let's use "Linux-cooked" mode. Jean II */ | ||
7 | //handle->md.cooked = 1; | ||
8 | break; | ||
9 | +#ifndef ARPHRD_IEEE80215 | ||
10 | +#define ARPHRD_IEEE80215 804 | ||
11 | +#endif | ||
12 | +#ifndef ARPHRD_IEEE80215_PHY | ||
13 | +#define ARPHRD_IEEE80215_PHY 805 | ||
14 | +#endif | ||
15 | + | ||
16 | + case ARPHRD_IEEE80215: | ||
17 | + case ARPHRD_IEEE80215_PHY: | ||
18 | + handle->linktype = DLT_IEEE802_15_4; | ||
19 | + break; | ||
20 | |||
21 | /* ARPHRD_LAPD is unofficial and randomly allocated, if reallocation | ||
22 | * is needed, please report it to <daniele@orlandi.com> */ | ||