All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Typo in IPv4 match debug print code
@ 2011-01-26 17:22 Thomas Jacob
  2011-01-26 17:22 ` [PATCH 2/2] Add IPv6 " Thomas Jacob
  2011-01-27  9:57 ` [PATCH 1/2] Typo in IPv4 " Patrick McHardy
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Jacob @ 2011-01-26 17:22 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Thomas Jacob

Signed-off-by: Thomas Jacob <jacob@internet24.de>
---
 net/netfilter/xt_iprange.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/xt_iprange.c b/net/netfilter/xt_iprange.c
index 73c33a4..5c14308 100644
--- a/net/netfilter/xt_iprange.c
+++ b/net/netfilter/xt_iprange.c
@@ -31,7 +31,7 @@ iprange_mt4(const struct sk_buff *skb, struct xt_action_param *par)
 			pr_debug("src IP %pI4 NOT in range %s%pI4-%pI4\n",
 			         &iph->saddr,
 			         (info->flags & IPRANGE_SRC_INV) ? "(INV) " : "",
-			         &info->src_max.ip,
+			         &info->src_min.ip,
 			         &info->src_max.ip);
 			return false;
 		}
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Add IPv6 match debug print code
  2011-01-26 17:22 [PATCH 1/2] Typo in IPv4 match debug print code Thomas Jacob
@ 2011-01-26 17:22 ` Thomas Jacob
  2011-01-27  9:59   ` Patrick McHardy
  2011-01-27  9:57 ` [PATCH 1/2] Typo in IPv4 " Patrick McHardy
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Jacob @ 2011-01-26 17:22 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Thomas Jacob


Signed-off-by: Thomas Jacob <jacob@internet24.de>
---
 net/netfilter/xt_iprange.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/xt_iprange.c b/net/netfilter/xt_iprange.c
index 5c14308..cd6e263 100644
--- a/net/netfilter/xt_iprange.c
+++ b/net/netfilter/xt_iprange.c
@@ -76,15 +76,27 @@ iprange_mt6(const struct sk_buff *skb, struct xt_action_param *par)
 		m  = iprange_ipv6_lt(&iph->saddr, &info->src_min.in6);
 		m |= iprange_ipv6_lt(&info->src_max.in6, &iph->saddr);
 		m ^= !!(info->flags & IPRANGE_SRC_INV);
-		if (m)
+		if (m) {
+			pr_debug("src IP %pI6 NOT in range %s%pI6-%pI6\n",
+			         &iph->saddr,
+			         (info->flags & IPRANGE_SRC_INV) ? "(INV) " : "",
+			         &info->src_min.in6,
+			         &info->src_max.in6);
 			return false;
+		}
 	}
 	if (info->flags & IPRANGE_DST) {
 		m  = iprange_ipv6_lt(&iph->daddr, &info->dst_min.in6);
 		m |= iprange_ipv6_lt(&info->dst_max.in6, &iph->daddr);
 		m ^= !!(info->flags & IPRANGE_DST_INV);
-		if (m)
+		if (m) {
+			pr_debug("dst IP %pI6 NOT in range %s%pI6-%pI6\n",
+			         &iph->daddr,
+			         (info->flags & IPRANGE_DST_INV) ? "(INV) " : "",
+			         &info->dst_min.in6,
+			         &info->dst_max.in6);
 			return false;
+		}
 	}
 	return true;
 }
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] Typo in IPv4 match debug print code
  2011-01-26 17:22 [PATCH 1/2] Typo in IPv4 match debug print code Thomas Jacob
  2011-01-26 17:22 ` [PATCH 2/2] Add IPv6 " Thomas Jacob
@ 2011-01-27  9:57 ` Patrick McHardy
  1 sibling, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2011-01-27  9:57 UTC (permalink / raw)
  To: Thomas Jacob; +Cc: netfilter-devel

Am 26.01.2011 18:22, schrieb Thomas Jacob:
> Signed-off-by: Thomas Jacob <jacob@internet24.de>
> ---
>  net/netfilter/xt_iprange.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks Thomas.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] Add IPv6 match debug print code
  2011-01-26 17:22 ` [PATCH 2/2] Add IPv6 " Thomas Jacob
@ 2011-01-27  9:59   ` Patrick McHardy
  0 siblings, 0 replies; 4+ messages in thread
From: Patrick McHardy @ 2011-01-27  9:59 UTC (permalink / raw)
  To: Thomas Jacob; +Cc: netfilter-devel

Am 26.01.2011 18:22, schrieb Thomas Jacob:
> Signed-off-by: Thomas Jacob <jacob@internet24.de>

This patch does not apply cleanly, please base your patches on

git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-27  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 17:22 [PATCH 1/2] Typo in IPv4 match debug print code Thomas Jacob
2011-01-26 17:22 ` [PATCH 2/2] Add IPv6 " Thomas Jacob
2011-01-27  9:59   ` Patrick McHardy
2011-01-27  9:57 ` [PATCH 1/2] Typo in IPv4 " Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.