summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_ip.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-12-13 21:43:10 +0100
committerPhil Sutter <phil@nwl.cc>2024-01-10 16:07:31 +0100
commit7e4fd7142366b570e3566df8ecb7fb909bd46b32 (patch)
tree44e20dbe760b071ec692830f152697ce4d33c5b2 /extensions/libebt_ip.c
parent24bb57d3f52ac1ae87f92ba567032bda9a749c62 (diff)
extensions: libebt_*: Drop some needless init callbacks
Extension data is zero by default.
Diffstat (limited to 'extensions/libebt_ip.c')
-rw-r--r--extensions/libebt_ip.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/extensions/libebt_ip.c b/extensions/libebt_ip.c
index 68f34bff..97ec4160 100644
--- a/extensions/libebt_ip.c
+++ b/extensions/libebt_ip.c
@@ -69,14 +69,6 @@ static void brip_print_help(void)
xt_print_icmp_types(igmp_types, ARRAY_SIZE(igmp_types));
}
-static void brip_init(struct xt_entry_match *match)
-{
- struct ebt_ip_info *info = (struct ebt_ip_info *)match->data;
-
- info->invflags = 0;
- info->bitmask = 0;
-}
-
static void
parse_port_range(const char *protocol, const char *portstring, uint16_t *ports)
{
@@ -503,7 +495,6 @@ static struct xtables_match brip_match = {
.family = NFPROTO_BRIDGE,
.size = XT_ALIGN(sizeof(struct ebt_ip_info)),
.userspacesize = XT_ALIGN(sizeof(struct ebt_ip_info)),
- .init = brip_init,
.help = brip_print_help,
.parse = brip_parse,
.final_check = brip_final_check,