diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-01-04 01:24:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-01-04 01:24:00 +0000 |
commit | 2b155795f120bda79e02f37cd71619d362fd11a4 (patch) | |
tree | 8f86896d24b7e0e5581e5cde534cc2160e82c88f /package/ead/src/filter.c | |
parent | 8997d76472e01fd439eb498c81f9088ab4f31e8e (diff) | |
download | master-187ad058-2b155795f120bda79e02f37cd71619d362fd11a4.tar.gz master-187ad058-2b155795f120bda79e02f37cd71619d362fd11a4.tar.bz2 master-187ad058-2b155795f120bda79e02f37cd71619d362fd11a4.zip |
allow the ead client to override the broadcast address
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13849 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ead/src/filter.c')
-rw-r--r-- | package/ead/src/filter.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/package/ead/src/filter.c b/package/ead/src/filter.c index ffa69f18bf..0759dc330f 100644 --- a/package/ead/src/filter.c +++ b/package/ead/src/filter.c @@ -1,13 +1,15 @@ -/* precompiled expression: udp and dst host 255.255.255.255 and dst port 56026 */ +/* precompiled expression: udp and dst port 56026 */ static struct bpf_insn pktfilter_insns[] = { { .code = 0x0028, .jt = 0x00, .jf = 0x00, .k = 0x0000000c }, - { .code = 0x0015, .jt = 0x0b, .jf = 0x00, .k = 0x000086dd }, - { .code = 0x0015, .jt = 0x00, .jf = 0x0a, .k = 0x00000800 }, + { .code = 0x0015, .jt = 0x00, .jf = 0x04, .k = 0x000086dd }, + { .code = 0x0030, .jt = 0x00, .jf = 0x00, .k = 0x00000014 }, + { .code = 0x0015, .jt = 0x00, .jf = 0x0b, .k = 0x00000011 }, + { .code = 0x0028, .jt = 0x00, .jf = 0x00, .k = 0x00000038 }, + { .code = 0x0015, .jt = 0x08, .jf = 0x09, .k = 0x0000dada }, + { .code = 0x0015, .jt = 0x00, .jf = 0x08, .k = 0x00000800 }, { .code = 0x0030, .jt = 0x00, .jf = 0x00, .k = 0x00000017 }, - { .code = 0x0015, .jt = 0x00, .jf = 0x08, .k = 0x00000011 }, - { .code = 0x0020, .jt = 0x00, .jf = 0x00, .k = 0x0000001e }, - { .code = 0x0015, .jt = 0x00, .jf = 0x06, .k = 0xffffffff }, + { .code = 0x0015, .jt = 0x00, .jf = 0x06, .k = 0x00000011 }, { .code = 0x0028, .jt = 0x00, .jf = 0x00, .k = 0x00000014 }, { .code = 0x0045, .jt = 0x04, .jf = 0x00, .k = 0x00001fff }, { .code = 0x00b1, .jt = 0x00, .jf = 0x00, .k = 0x0000000e }, @@ -18,6 +20,6 @@ static struct bpf_insn pktfilter_insns[] = { }; static struct bpf_program pktfilter = { - .bf_len = 14, + .bf_len = 16, .bf_insns = pktfilter_insns, }; |