mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 18:10:41 +02:00
[backfire] iptables: the iprange v0 match for Linux 2.4 is completely broken, repair it
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23526 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
749a982db7
commit
d072041530
24
package/iptables/patches/011-iprange-linux-2.4-compat.patch
Normal file
24
package/iptables/patches/011-iprange-linux-2.4-compat.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
--- a/extensions/libxt_iprange.c
|
||||||
|
+++ b/extensions/libxt_iprange.c
|
||||||
|
@@ -96,7 +96,8 @@ static int iprange_parse(int c, char **a
|
||||||
|
if (invert)
|
||||||
|
info->flags |= IPRANGE_SRC_INV;
|
||||||
|
iprange_parse_range(optarg, range, NFPROTO_IPV4, "--src-range");
|
||||||
|
-
|
||||||
|
+ info->src.min_ip = range[0].in.s_addr;
|
||||||
|
+ info->src.max_ip = range[1].in.s_addr;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '2':
|
||||||
|
@@ -110,8 +111,9 @@ static int iprange_parse(int c, char **a
|
||||||
|
if (invert)
|
||||||
|
info->flags |= IPRANGE_DST_INV;
|
||||||
|
|
||||||
|
- iprange_parse_range(optarg, range, NFPROTO_IPV4, "--src-range");
|
||||||
|
-
|
||||||
|
+ iprange_parse_range(optarg, range, NFPROTO_IPV4, "--dst-range");
|
||||||
|
+ info->dst.min_ip = range[0].in.s_addr;
|
||||||
|
+ info->dst.max_ip = range[1].in.s_addr;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
Loading…
Reference in New Issue
Block a user