Skip to content

Commit 95eea85

Browse files
Jan Engelhardtkaber
authored andcommitted
[NETFILTER]: remove arpt_target indirection macro
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
1 parent 4abff07 commit 95eea85

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎include/linux/netfilter_arp/arp_tables.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#define ARPT_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN
2525
#define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN
26-
#define arpt_target xt_target
2726

2827
#define ARPT_DEV_ADDR_LEN_MAX 16
2928

‎net/ipv4/netfilter/arp_tables.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static inline int check_entry(struct arpt_entry *e, const char *name)
457457
static inline int check_target(struct arpt_entry *e, const char *name)
458458
{
459459
struct arpt_entry_target *t;
460-
struct arpt_target *target;
460+
struct xt_target *target;
461461
int ret;
462462

463463
t = arpt_get_target(e);
@@ -480,7 +480,7 @@ find_check_entry(struct arpt_entry *e, const char *name, unsigned int size,
480480
unsigned int *i)
481481
{
482482
struct arpt_entry_target *t;
483-
struct arpt_target *target;
483+
struct xt_target *target;
484484
int ret;
485485

486486
ret = check_entry(e, name);
@@ -1784,7 +1784,7 @@ void arpt_unregister_table(struct xt_table *table)
17841784
}
17851785

17861786
/* 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 = {
17881788
.name = ARPT_STANDARD_TARGET,
17891789
.targetsize = sizeof(int),
17901790
.family = NF_ARP,
@@ -1795,7 +1795,7 @@ static struct arpt_target arpt_standard_target __read_mostly = {
17951795
#endif
17961796
};
17971797

1798-
static struct arpt_target arpt_error_target __read_mostly = {
1798+
static struct xt_target arpt_error_target __read_mostly = {
17991799
.name = ARPT_ERROR_TARGET,
18001800
.target = arpt_error,
18011801
.targetsize = ARPT_FUNCTION_MAXNAMELEN,

‎net/ipv4/netfilter/arpt_mangle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ checkentry(const char *tablename, const void *e, const struct xt_target *target,
7373
return true;
7474
}
7575

76-
static struct arpt_target arpt_mangle_reg __read_mostly = {
76+
static struct xt_target arpt_mangle_reg __read_mostly = {
7777
.name = "mangle",
7878
.target = target,
7979
.targetsize = sizeof(struct arpt_mangle),

0 commit comments

Comments
 (0)