All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Samuelson <josamue1@wsc.edu>
To: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] new match extension `flow'
Date: Thu, 28 Oct 2004 15:15:25 -0500	[thread overview]
Message-ID: <20041028201525.GA30087@wsc.edu> (raw)
In-Reply-To: <20041028020550.GA10097@wsc.edu>

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

After thinking about it for a bit, this match could be used in more tables
then just the filter table.  These patches make it so the prior patch
works in all tables but raw.

-Josh

[-- Attachment #2: linux-2.6.9-flow-20041028-noraw.diff --]
[-- Type: text/plain, Size: 675 bytes --]

diff -Pru linux-2.6.9-flow-20041027/net/ipv4/netfilter/ipt_flow.c linux-2.6.9-flow-20041028/net/ipv4/netfilter/ipt_flow.c
--- linux-2.6.9-flow-20041027/net/ipv4/netfilter/ipt_flow.c	2004-10-28 13:49:20.430784272 -0500
+++ linux-2.6.9-flow-20041028/net/ipv4/netfilter/ipt_flow.c	2004-10-28 13:49:54.800559272 -0500
@@ -77,8 +77,8 @@
 	if (matchsize != IPT_ALIGN(sizeof(struct ipt_flow_info)))
 		return 0;
 
-	if (strcmp(tablename, "filter") != 0) {
-		printk(KERN_WARNING "flow: can only be used in \"filter\" table, not \"%s\"\n", tablename);
+	if (strcmp(tablename, "raw") == 0) {
+		printk(KERN_WARNING "flow: can not by used in the \"raw\" table\n");
 		return(0);
 	}
 

[-- Attachment #3: iptables-1.2.11-flow-20041028-noraw.diff --]
[-- Type: text/plain, Size: 665 bytes --]

diff -Pru iptables-1.2.11-flow-20041027/extensions/libipt_flow.man iptables-1.2.11-flow-20041028/extensions/libipt_flow.man
--- iptables-1.2.11-flow-20041027/extensions/libipt_flow.man	2004-10-28 14:56:07.752578760 -0500
+++ iptables-1.2.11-flow-20041028/extensions/libipt_flow.man	2004-10-28 14:54:42.386556368 -0500
@@ -1,6 +1,6 @@
 This module, when combined with connection tracking, allows access to
 IP, ICMP, TCP and UDP flow counts per source IP address (IP_CT_DIR_ORIGINAL
-state from ip_conntrack)  This match module can only be used in the filter
+state from ip_conntrack)  This match module can not be used in the raw
 table.
 .TP
 .BI "--maxip "   "n"

  reply	other threads:[~2004-10-28 20:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28  2:05 [PATCH] new match extension `flow' Josh Samuelson
2004-10-28 20:15 ` Josh Samuelson [this message]
2004-10-29 19:32 ` Pablo Neira
2004-10-31  6:38   ` Josh Samuelson
2004-10-31 14:41     ` Pablo Neira
2004-11-04  2:20       ` Josh Samuelson
2004-11-06 15:19         ` Pablo Neira
2004-11-08  2:52           ` Josh Samuelson
2004-11-10 18:12             ` Pablo Neira
2004-11-13 22:12         ` Pablo Neira

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=20041028201525.GA30087@wsc.edu \
    --to=josamue1@wsc.edu \
    --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.