All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robbie Dinn <robbie@microbus.com>
To: Patrick McHardy <kaber@trash.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: bug report/fix for 'proc-no-internal-targets' patch
Date: Fri, 07 May 2004 10:50:49 +0100	[thread overview]
Message-ID: <409B5BF9.5040103@microbus.com> (raw)

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.

             reply	other threads:[~2004-05-07  9:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07  9:50 Robbie Dinn [this message]
2004-05-07 11:40 ` bug report/fix for 'proc-no-internal-targets' patch Robbie Dinn
2004-05-07 15:36 ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=409B5BF9.5040103@microbus.com \
    --to=robbie@microbus.com \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.