]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-compat: ebtables: allow checking for zero-mac
authorFlorian Westphal <fw@strlen.de>
Tue, 8 May 2018 14:31:29 +0000 (16:31 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 10 May 2018 00:31:05 +0000 (02:31 +0200)
commit07f4ca96816886635acfb9478b2d04929938eb78
tree4e75aef91de288c9e814580703a77cc71bd73e28
parent0ca2d2a2a5994a6131ad32aedbc42b530ac529bd
xtables-compat: ebtables: allow checking for zero-mac

Allow checking for an all-zero mac address by replacing checks on the
address with a check on the option flag.

Its set when '-d' or '-s' appears on the command line and when seeing
a linklayer payload request for ether s/daddr.

Same for -p: s this flag gets removed during getopt when 'p' is encountered.

So, if its set, no need to check protocol type.

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