From: Pablo Neira <pablo@eurodev.net>
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [PATCH] move ipt_error and ipt_standard to iptables.h
Date: Sat, 01 Jan 2005 23:05:11 +0100 [thread overview]
Message-ID: <41D71E97.8020709@eurodev.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
Hi,
ipt_error_target, ipt_error and ipt_standard are defined in every table.
Move these declarations to ip_tables.h where I think they really belongs to.
Please, let me know if there any special reason to duplicate them that way.
Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net>
--
Pablo
[-- Attachment #2: ipt_error_and_generic_redefinition.patch --]
[-- Type: text/x-patch, Size: 3416 bytes --]
===== include/linux/netfilter_ipv4/ip_tables.h 1.12 vs edited =====
--- 1.12/include/linux/netfilter_ipv4/ip_tables.h 2004-11-02 01:39:53 +01:00
+++ edited/include/linux/netfilter_ipv4/ip_tables.h 2004-12-29 13:32:56 +01:00
@@ -439,6 +447,25 @@
/* Set to THIS_MODULE. */
struct module *me;
+};
+
+/* Standard entry. */
+struct ipt_standard
+{
+ struct ipt_entry entry;
+ struct ipt_standard_target target;
+};
+
+struct ipt_error_target
+{
+ struct ipt_entry_target target;
+ char errorname[IPT_FUNCTION_MAXNAMELEN];
+};
+
+struct ipt_error
+{
+ struct ipt_entry entry;
+ struct ipt_error_target target;
};
extern int ipt_register_table(struct ipt_table *table);
===== net/ipv4/netfilter/iptable_raw.c 1.3 vs edited =====
--- 1.3/net/ipv4/netfilter/iptable_raw.c 2004-06-23 16:44:05 +02:00
+++ edited/net/ipv4/netfilter/iptable_raw.c 2004-12-29 13:33:24 +01:00
@@ -8,25 +8,6 @@
#define RAW_VALID_HOOKS ((1 << NF_IP_PRE_ROUTING) | (1 << NF_IP_LOCAL_OUT))
-/* Standard entry. */
-struct ipt_standard
-{
- struct ipt_entry entry;
- struct ipt_standard_target target;
-};
-
-struct ipt_error_target
-{
- struct ipt_entry_target target;
- char errorname[IPT_FUNCTION_MAXNAMELEN];
-};
-
-struct ipt_error
-{
- struct ipt_entry entry;
- struct ipt_error_target target;
-};
-
static struct
{
struct ipt_replace repl;
===== net/ipv4/netfilter/iptable_mangle.c 1.17 vs edited =====
--- 1.17/net/ipv4/netfilter/iptable_mangle.c 2004-06-21 23:31:50 +02:00
+++ edited/net/ipv4/netfilter/iptable_mangle.c 2004-12-29 13:33:41 +01:00
@@ -29,25 +29,6 @@
(1 << NF_IP_LOCAL_OUT) | \
(1 << NF_IP_POST_ROUTING))
-/* Standard entry. */
-struct ipt_standard
-{
- struct ipt_entry entry;
- struct ipt_standard_target target;
-};
-
-struct ipt_error_target
-{
- struct ipt_entry_target target;
- char errorname[IPT_FUNCTION_MAXNAMELEN];
-};
-
-struct ipt_error
-{
- struct ipt_entry entry;
- struct ipt_error_target target;
-};
-
/* Ouch - five different hooks? Maybe this should be a config option..... -- BC */
static struct
{
===== net/ipv4/netfilter/iptable_filter.c 1.13 vs edited =====
--- 1.13/net/ipv4/netfilter/iptable_filter.c 2004-11-13 22:40:51 +01:00
+++ edited/net/ipv4/netfilter/iptable_filter.c 2004-12-29 13:33:05 +01:00
@@ -20,25 +20,6 @@
#define FILTER_VALID_HOOKS ((1 << NF_IP_LOCAL_IN) | (1 << NF_IP_FORWARD) | (1 << NF_IP_LOCAL_OUT))
-/* Standard entry. */
-struct ipt_standard
-{
- struct ipt_entry entry;
- struct ipt_standard_target target;
-};
-
-struct ipt_error_target
-{
- struct ipt_entry_target target;
- char errorname[IPT_FUNCTION_MAXNAMELEN];
-};
-
-struct ipt_error
-{
- struct ipt_entry entry;
- struct ipt_error_target target;
-};
-
static struct
{
struct ipt_replace repl;
===== net/ipv4/netfilter/ip_nat_rule.c 1.15 vs edited =====
--- 1.15/net/ipv4/netfilter/ip_nat_rule.c 2004-11-13 22:40:51 +01:00
+++ edited/net/ipv4/netfilter/ip_nat_rule.c 2004-12-29 13:34:07 +01:00
@@ -35,25 +35,6 @@
#define NAT_VALID_HOOKS ((1<<NF_IP_PRE_ROUTING) | (1<<NF_IP_POST_ROUTING) | (1<<NF_IP_LOCAL_OUT))
-/* Standard entry. */
-struct ipt_standard
-{
- struct ipt_entry entry;
- struct ipt_standard_target target;
-};
-
-struct ipt_error_target
-{
- struct ipt_entry_target target;
- char errorname[IPT_FUNCTION_MAXNAMELEN];
-};
-
-struct ipt_error
-{
- struct ipt_entry entry;
- struct ipt_error_target target;
-};
-
static struct
{
struct ipt_replace repl;
next reply other threads:[~2005-01-01 22:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-01 22:05 Pablo Neira [this message]
2005-01-02 23:03 ` [PATCH] move ipt_error and ipt_standard to iptables.h 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=41D71E97.8020709@eurodev.net \
--to=pablo@eurodev.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.