: Advance seq-file position in exp_next_seq()
Subsystems (2)
Hi Dave,
a small fix for 2.6.12 if still possible: exp_next_seq() (used for /proc/net/ip_conntracK_expect) doesn't advance the seq-file position. I haven't tracked exactly why, but this makes the seq-file API show (n+1)*(n/2) entries, with the first one showed n times, the second one n-1 times, and so on.
Regards
Patrick
[NETFILTER]: Advance seq-file position in exp_next_seq()
---
commit 5cc89cae827217a8183d4eb1165cc32f804518fa
tree 7284df19ea5b31f63777407cec1adfd703fa7958
parent f268bb805a9777d5c82c7c1cb683b476d65f0c1b
author Patrick McHardy <[email protected]> Sat, 11 Jun 2005 19:21:28 +0200 committer Patrick McHardy <[email protected]> Sat, 11 Jun 2005 19:21:28 +0200
net/ipv4/netfilter/ip_conntrack_standalone.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
net/ipv4/netfilter/ip_conntrack_standalone.c +1 -0
@@ -256,6 +256,7 @@ static void *exp_seq_next(struct seq_fil {struct list_head *e = v; + ++*pos; e = e->next;if (e == &ip_conntrack_expect_list)
David S. Miller
maintainerFrom: Patrick McHardy <[email protected]>
Date: Tue, 14 Jun 2005 02:56:37 +0200
Quoted 5 lines
a small fix for 2.6.12 if still possible:
exp_next_seq()(used for/proc/net/ip_conntracK_expect) doesn't advance the seq-file position. I haven't tracked exactly why, but this makes the seq-file API show (n+1)*(n/2) entries, with the first one showed n times, the second one n-1 times, and so on.
I put this into my tree and will try to get it to Linus tonight.