OSDN Git Service

Correct the upto value during list conntrack information
authorXiong Wu <xiong_wu@cpsecure.com>
Fri, 4 Jul 2008 11:21:15 +0000 (13:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 20 Jul 2008 17:13:34 +0000 (19:13 +0200)
commit72155e6da45062497532710b922e8b661f7cee16
treea315e2b9df95e344f2eb80be1c15369b79387b51
parenta7b5569205329866fc58ea8545fe1b2117f297bf
Correct the upto value during list conntrack information

The problem:
When list numerous conntrack information from /proc/net/ip_conntrack,
we found some items are missing.

The solution:
This patch correct the upto value in conntrack_iterate() when the length
of conntrack information exceed the max length.

Cc: Patrick McHardy <kaber@trash.net>
Cc: coreteam@netfilter.org
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/ipv4/netfilter/ip_conntrack_standalone.c