aboutsummaryrefslogtreecommitdiffstats
path: root/package/libpcap/patches/102-alt-ether.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-25 03:30:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-25 03:30:10 +0000
commit25e9d9025668dc638fcd171e43bbf9cd2895ea31 (patch)
tree8cd67a42e3d96f455272f278298be302efbabd16 /package/libpcap/patches/102-alt-ether.patch
parent8ce7b559d0f6533bcbe154f332855426d1d7a368 (diff)
downloadupstream-25e9d9025668dc638fcd171e43bbf9cd2895ea31.tar.gz
upstream-25e9d9025668dc638fcd171e43bbf9cd2895ea31.tar.bz2
upstream-25e9d9025668dc638fcd171e43bbf9cd2895ea31.zip
pcap: update to version 1.0.0, add extension for changing the desired protocol for the internal raw socket (useful for reducing the cpu overhead of capture)
SVN-Revision: 15398
Diffstat (limited to 'package/libpcap/patches/102-alt-ether.patch')
-rw-r--r--package/libpcap/patches/102-alt-ether.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/package/libpcap/patches/102-alt-ether.patch b/package/libpcap/patches/102-alt-ether.patch
deleted file mode 100644
index e9cc15ff36..0000000000
--- a/package/libpcap/patches/102-alt-ether.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- a/nametoaddr.c
-+++ b/nametoaddr.c
-@@ -410,7 +410,7 @@
- e = ep = (u_char *)malloc(6);
-
- while (*s) {
-- if (*s == ':')
-+ if (*s == ':' || *s == '.')
- s += 1;
- d = xdtoi(*s++);
- if (isxdigit((unsigned char)*s)) {
---- a/scanner.l
-+++ b/scanner.l
-@@ -80,6 +80,7 @@
- N ([0-9]+|(0X|0x)[0-9A-Fa-f]+)
- B ([0-9A-Fa-f][0-9A-Fa-f]?)
- W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?)
-+X [0-9A-Fa-f]
-
- %a 18400
- %o 21500
-@@ -310,7 +311,7 @@
- {N} { yylval.i = stoi((char *)yytext); return NUM; }
- ({N}\.{N})|({N}\.{N}\.{N})|({N}\.{N}\.{N}\.{N}) {
- yylval.s = sdup((char *)yytext); return HID; }
--{B}:{B}:{B}:{B}:{B}:{B} { yylval.e = pcap_ether_aton((char *)yytext);
-+({B}:{B}:{B}:{B}:{B}:{B})|({B}\.{B}\.{B}\.{B}\.{B}\.{B}) { yylval.e = pcap_ether_aton((char *)yytext);
- return EID; }
- {V6} {
- #ifdef INET6
-@@ -328,6 +329,7 @@
- #endif /*INET6*/
- }
- {B}:+({B}:+)+ { bpf_error("bogus ethernet address %s", yytext); }
-+{X}{12} { yylval.e = pcap_ether_aton((char *)yytext); return EID;}
- icmptype { yylval.i = 0; return NUM; }
- icmpcode { yylval.i = 1; return NUM; }
- icmp-echoreply { yylval.i = 0; return NUM; }