* /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
* Re: /proc/net/ip_conntrack does not list all connections
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
0 siblings, 1 reply; 3+ messages in thread
From: Philip Craig @ 2002-11-25 0:35 UTC (permalink / raw)
To: netfilter-devel
yihyung wrote:
> I made a patch to fix it for my 2.4.19 kernel.
/proc/net/ip_masquerade has similar problems, as does
/proc/net/ip_tables_names (although you will probably
never have enough table names for that one to occur).
I posted a patch for these a while ago:
http://lists.netfilter.org/pipermail/netfilter-devel/2002-February/006716.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /proc/net/ip_conntrack does not list all connections
2002-11-25 0:35 ` Philip Craig
@ 2002-12-05 20:24 ` Harald Welte
0 siblings, 0 replies; 3+ messages in thread
From: Harald Welte @ 2002-12-05 20:24 UTC (permalink / raw)
To: Philip Craig; +Cc: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
On Mon, Nov 25, 2002 at 10:35:31AM +1000, Philip Craig wrote:
> yihyung wrote:
> > I made a patch to fix it for my 2.4.19 kernel.
>
> /proc/net/ip_masquerade has similar problems, as does
> /proc/net/ip_tables_names (although you will probably
> never have enough table names for that one to occur).
> I posted a patch for these a while ago:
>
> http://lists.netfilter.org/pipermail/netfilter-devel/2002-February/006716.htm
thanks for pointing this out. I simply missed it. Please try pushing
this again as soon as you think something was missed.
I'll put it in the pending repository of pom now.
--
Live long and prosper
- Harald Welte / laforge@gnumonks.org http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ 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.