[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.01.1007311603010.32289@obet.zrqbmnf.qr>
Date: Sat, 31 Jul 2010 16:03:45 +0200 (CEST)
From: Jan Engelhardt <jengelh@...ozas.de>
To: Changli Gao <xiaosuo@...il.com>
cc: Patrick McHardy <kaber@...sh.net>,
"David S. Miller" <davem@...emloft.net>,
netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] nf_nat: don't check if the tuple is unique when
there isn't any other choice
On Saturday 2010-07-31 04:22, Changli Gao wrote:
>+++ b/net/ipv4/netfilter/nf_nat_proto_common.c
>@@ -81,9 +81,9 @@ void nf_nat_proto_unique_tuple(struct nf_conntrack_tuple *tuple,
> else
> off = *rover;
>
>- for (i = 0; i < range_size; i++, off++) {
>+ for (i = 0; 1; off++) {
The 1 looks strange. It's more common to express this without
a condition, as in (i = 0; ; ++off).
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists