* bug report/fix for 'proc-no-internal-targets' patch
@ 2004-05-07 9:50 Robbie Dinn
2004-05-07 11:40 ` Robbie Dinn
2004-05-07 15:36 ` Patrick McHardy
0 siblings, 2 replies; 3+ messages in thread
From: Robbie Dinn @ 2004-05-07 9:50 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Netfilter Development Mailinglist
Hello Patrick,
I would like to report a trivial bug in the proc-no-internal-targets
patch in patch-o-matic-ng which I recently downloaded from CVS.
I was able to fix it myself.
I am working with kernel-2.6.6-rc3-mm2 + patch-o-matic from CVS.
I believe the 2.4.XX kernel has the same problem.
--- net/ipv4/netfilter/ip_tables.c 2004-05-07 10:40:28.230993459 +0100
+++ net/ipv4/netfilter/ip_tables.c.orig 2004-05-07 10:29:33.812943895 +0100
@@ -1756,7 +1756,7 @@
off_t start_offset, char *buffer, int
length,
off_t *pos, unsigned int *count)
{
- if (t == &ipt_standard_target || t == &ipt_error_target)
+ if (t != &ipt_standard_target && t != &ipt_error_target)
return 0;
return print_name((char *)t, start_offset, buffer, length, pos, count);
}
with proc-no-internal-targets applied, but without the above diff
robbie@rjd:~> cat /proc/net/ip_tables_targets
ERROR
robbie@rjd:~>
with proc-no-internal-targets applied, plus the one line fix above
robbie@rjd:~> cat /proc/net/ip_tables_targets
TCPMSS
TOS
MARK
LOG
REJECT
DNAT
SNAT
robbie@rjd:~>
Hope that helps.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-07 15:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-07 9:50 bug report/fix for 'proc-no-internal-targets' patch Robbie Dinn
2004-05-07 11:40 ` Robbie Dinn
2004-05-07 15:36 ` Patrick McHardy
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.