]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Optimize masked MAC address matches
authorPhil Sutter <phil@nwl.cc>
Fri, 30 Oct 2020 13:08:33 +0000 (14:08 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 4 Nov 2020 14:39:23 +0000 (15:39 +0100)
commit274cb05edc58d6fa982a34c84b2f4cf6acc3e335
treec6575d918216e25f5328a4e19fe94f6c58fee92d
parent323259001d617ae359430a03ee3d3e7f107684e0
ebtables: Optimize masked MAC address matches

Just like with class-based prefix matches in iptables-nft, optimize
masked MAC address matches if the mask is on a byte-boundary.

To reuse the logic in add_addr(), extend it to accept the payload base
value via parameter.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-arp.c
iptables/nft-bridge.c
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/nft-shared.c
iptables/nft-shared.h