]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-compat: ebtables: remove interface masks from ebt_entry struct
authorFlorian Westphal <fw@strlen.de>
Tue, 8 May 2018 09:37:46 +0000 (11:37 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 10 May 2018 00:31:05 +0000 (02:31 +0200)
They don't exist in the legacy ABI, so don't pretend otherwise.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-bridge.c
iptables/xshared.h

index 162a87e0bb3bf96cf548767e47053451fd60d1cb..fcc516464643addc2c35fd2289cd3cfdee93d8db 100644 (file)
@@ -406,7 +406,6 @@ static void print_matches_and_watchers(const struct iptables_command_state *cs,
        }
 }
 
-
 static void nft_bridge_print_firewall(struct nftnl_rule *r, unsigned int num,
                                      unsigned int format)
 {
@@ -547,14 +546,7 @@ static bool nft_bridge_is_same(const void *data_a, const void *data_b)
                }
        }
 
-       return is_same_interfaces((char *)a->in,
-                                 (char *)a->out,
-                                 a->in_mask,
-                                 a->out_mask,
-                                 (char *)b->in,
-                                 (char *)b->out,
-                                 b->in_mask,
-                                 b->out_mask);
+       return strcmp(a->in, b->in) == 0 && strcmp(a->out, b->out) == 0;
 }
 
 static bool nft_bridge_rule_find(struct nft_family_ops *ops, struct nftnl_rule *r,
index cec5a08a410abbcb939aa1139dbf700bbe18afa4..01c0eb12abb569b37ccb5c91d76f9cfd3610a27c 100644 (file)
@@ -76,9 +76,6 @@ struct ebt_entry {
        unsigned char sourcemsk[6];
        unsigned char destmac[6];
        unsigned char destmsk[6];
-
-       unsigned char in_mask[IFNAMSIZ];
-       unsigned char out_mask[IFNAMSIZ];
 };
 
 struct iptables_command_state {