From d67734d786fc95a7dce3ca97da82713a102dab3a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 18 Oct 2010 21:49:07 +0000 Subject: [PATCH] iptables: the iprange v0 match for Linux 2.4 is completely broken, repair it SVN-Revision: 23526 --- .../011-iprange-linux-2.4-compat.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/iptables/patches/011-iprange-linux-2.4-compat.patch diff --git a/package/iptables/patches/011-iprange-linux-2.4-compat.patch b/package/iptables/patches/011-iprange-linux-2.4-compat.patch new file mode 100644 index 0000000000..b5a21fddd0 --- /dev/null +++ b/package/iptables/patches/011-iprange-linux-2.4-compat.patch @@ -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: -- 2.30.2