diff options
-rw-r--r-- | include/linux/netfilter_arp/arp_tables.h | 1 | ||||
-rw-r--r-- | net/ipv4/netfilter/arp_tables.c | 8 | ||||
-rw-r--r-- | net/ipv4/netfilter/arpt_mangle.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h index 102c4134a713..782b83e5bdb9 100644 --- a/include/linux/netfilter_arp/arp_tables.h +++ b/include/linux/netfilter_arp/arp_tables.h | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #define ARPT_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN | 24 | #define ARPT_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN |
25 | #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN | 25 | #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN |
26 | #define arpt_target xt_target | ||
27 | 26 | ||
28 | #define ARPT_DEV_ADDR_LEN_MAX 16 | 27 | #define ARPT_DEV_ADDR_LEN_MAX 16 |
29 | 28 | ||
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index 34c42c831b18..d55f3b42eba5 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c | |||
@@ -457,7 +457,7 @@ static inline int check_entry(struct arpt_entry *e, const char *name) | |||
457 | static inline int check_target(struct arpt_entry *e, const char *name) | 457 | static inline int check_target(struct arpt_entry *e, const char *name) |
458 | { | 458 | { |
459 | struct arpt_entry_target *t; | 459 | struct arpt_entry_target *t; |
460 | struct arpt_target *target; | 460 | struct xt_target *target; |
461 | int ret; | 461 | int ret; |
462 | 462 | ||
463 | t = arpt_get_target(e); | 463 | t = arpt_get_target(e); |
@@ -480,7 +480,7 @@ find_check_entry(struct arpt_entry *e, const char *name, unsigned int size, | |||
480 | unsigned int *i) | 480 | unsigned int *i) |
481 | { | 481 | { |
482 | struct arpt_entry_target *t; | 482 | struct arpt_entry_target *t; |
483 | struct arpt_target *target; | 483 | struct xt_target *target; |
484 | int ret; | 484 | int ret; |
485 | 485 | ||
486 | ret = check_entry(e, name); | 486 | ret = check_entry(e, name); |
@@ -1784,7 +1784,7 @@ void arpt_unregister_table(struct xt_table *table) | |||
1784 | } | 1784 | } |
1785 | 1785 | ||
1786 | /* The built-in targets: standard (NULL) and error. */ | 1786 | /* The built-in targets: standard (NULL) and error. */ |
1787 | static struct arpt_target arpt_standard_target __read_mostly = { | 1787 | static struct xt_target arpt_standard_target __read_mostly = { |
1788 | .name = ARPT_STANDARD_TARGET, | 1788 | .name = ARPT_STANDARD_TARGET, |
1789 | .targetsize = sizeof(int), | 1789 | .targetsize = sizeof(int), |
1790 | .family = NF_ARP, | 1790 | .family = NF_ARP, |
@@ -1795,7 +1795,7 @@ static struct arpt_target arpt_standard_target __read_mostly = { | |||
1795 | #endif | 1795 | #endif |
1796 | }; | 1796 | }; |
1797 | 1797 | ||
1798 | static struct arpt_target arpt_error_target __read_mostly = { | 1798 | static struct xt_target arpt_error_target __read_mostly = { |
1799 | .name = ARPT_ERROR_TARGET, | 1799 | .name = ARPT_ERROR_TARGET, |
1800 | .target = arpt_error, | 1800 | .target = arpt_error, |
1801 | .targetsize = ARPT_FUNCTION_MAXNAMELEN, | 1801 | .targetsize = ARPT_FUNCTION_MAXNAMELEN, |
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c index 3e732c827fc2..f9c102ab891b 100644 --- a/net/ipv4/netfilter/arpt_mangle.c +++ b/net/ipv4/netfilter/arpt_mangle.c | |||
@@ -73,7 +73,7 @@ checkentry(const char *tablename, const void *e, const struct xt_target *target, | |||
73 | return true; | 73 | return true; |
74 | } | 74 | } |
75 | 75 | ||
76 | static struct arpt_target arpt_mangle_reg __read_mostly = { | 76 | static struct xt_target arpt_mangle_reg __read_mostly = { |
77 | .name = "mangle", | 77 | .name = "mangle", |
78 | .target = target, | 78 | .target = target, |
79 | .targetsize = sizeof(struct arpt_mangle), | 79 | .targetsize = sizeof(struct arpt_mangle), |