All of lore.kernel.org
 help / color / mirror / Atom feed
* /proc/net/ip_conntrack does not list all connections
@ 2002-11-23 18:15 yihyung
  2002-11-25  0:35 ` Philip Craig
  0 siblings, 1 reply; 3+ messages in thread
From: yihyung @ 2002-11-23 18:15 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

I made a patch to fix it for my 2.4.19 kernel.

Yih Yung


[-- Attachment #2: 2.4.19.patch --]
[-- Type: text/plain, Size: 711 bytes --]

diff -ur linux-2.4.19-old/net/ipv4/netfilter/ip_conntrack_standalone.c linux-2.4.19-new/net/ipv4/netfilter/ip_conntrack_standalone.c
--- linux-2.4.19-old/net/ipv4/netfilter/ip_conntrack_standalone.c	2002-08-03 08:39:46.000000000 +0800
+++ linux-2.4.19-new/net/ipv4/netfilter/ip_conntrack_standalone.c	2002-11-24 01:15:52.000000000 +0800
@@ -122,8 +122,10 @@
 		return 0;
 
 	newlen = print_conntrack(buffer + *len, hash->ctrack);
-	if (*len + newlen > maxlen)
+	if (*len + newlen > maxlen) {
+		-- * upto;
 		return 1;
+	}
 	else *len += newlen;
 
 	return 0;
@@ -157,6 +159,7 @@
 		len += print_expect(buffer + len, expect);
 		if (len > length) {
 			len = last_len;
+			-- upto;
 			goto finished;
 		}
 	}


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

end of thread, other threads:[~2002-12-05 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23 18:15 /proc/net/ip_conntrack does not list all connections yihyung
2002-11-25  0:35 ` Philip Craig
2002-12-05 20:24   ` Harald Welte

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.