: move ipt_error and ipt_standard to iptables.h
Subsystems (2)
PATCH 5/6 : move ipt_error and ipt_standard to iptables.h
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/01/11 03:45:03+01:00 [email protected]
# [NETFILTER]: move ipt_error and ipt_standard to iptables.h
#
# Signed-off-by: Pablo Neira Ayuso <[email protected]>
# Signed-off-by: Patrick McHardy <[email protected]>
#
# net/ipv4/netfilter/iptable_raw.c # 2005/01/11 03:44:54+01:00 [email protected] +0 -19 # [NETFILTER]: move ipt_error and ipt_standard to iptables.h # # Signed-off-by: Pablo Neira Ayuso <[email protected]> # Signed-off-by: Patrick McHardy <[email protected]> # # net/ipv4/netfilter/iptable_mangle.c # 2005/01/11 03:44:54+01:00 [email protected] +0 -19 # [NETFILTER]: move ipt_error and ipt_standard to iptables.h # # Signed-off-by: Pablo Neira Ayuso <[email protected]> # Signed-off-by: Patrick McHardy <[email protected]> # # net/ipv4/netfilter/iptable_filter.c # 2005/01/11 03:44:54+01:00 [email protected] +0 -19 # [NETFILTER]: move ipt_error and ipt_standard to iptables.h # # Signed-off-by: Pablo Neira Ayuso <[email protected]> # Signed-off-by: Patrick McHardy <[email protected]> # # net/ipv4/netfilter/ip_nat_rule.c # 2005/01/11 03:44:54+01:00 [email protected] +0 -19 # [NETFILTER]: move ipt_error and ipt_standard to iptables.h # # Signed-off-by: Pablo Neira Ayuso <[email protected]> # Signed-off-by: Patrick McHardy <[email protected]> # # include/linux/netfilter_ipv4/ip_tables.h # 2005/01/11 03:44:54+01:00 [email protected] +19 -0 # [NETFILTER]: move ipt_error and ipt_standard to iptables.h # # Signed-off-by: Pablo Neira Ayuso <[email protected]> # Signed-off-by: Patrick McHardy <[email protected]> # diff -Nru a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h --- a/include/linux/netfilter_ipv4/ip_tables.h 2005-01-11 13:39:58 +01:00 +++ b/include/linux/netfilter_ipv4/ip_tables.h 2005-01-11 13:39:58 +01:00 @@ -459,6 +459,25 @@ /* net/sched/ipt.c: Gimme access to your targets! Gets target->me. */ extern struct ipt_target *ipt_find_target(const char *name, u8 revision);
+/* 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); extern void ipt_unregister_table(struct ipt_table *table); extern unsigned int ipt_do_table(struct sk_buff **pskb,
net/ipv4/netfilter/ip_nat_rule.c +0 -19
@@ -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;
net/ipv4/netfilter/iptable_filter.c +0 -19
@@ -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/iptable_mangle.c +0 -19
@@ -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_raw.c +0 -19
@@ -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;