netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too
authorStefano Brivio <sbrivio@redhat.com>
Mon, 24 Jun 2019 13:20:11 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:28:33 +0000 (08:28 +0200)
commit5a072ef6a296ecdb740998366cc441443a50d66f
treeebd78acc865f5760749433f6c8e4debc65e4852d
parentba42212ac0a022104deb5971337602a81cc5242d
netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too

[ Upstream commit b89d15480d0cacacae1a0fe0b3da01b529f2914f ]

In commit 8cc4ccf58379 ("ipset: Allow matching on destination MAC address
for mac and ipmac sets"), ipset.git commit 1543514c46a7, I removed the
KADT check that prevents matching on destination MAC addresses for
hash:mac sets, but forgot to remove the same check for hash:ip,mac set.

Drop this check: functionality is now commented in man pages and there's
no reason to restrict to source MAC address matching anymore.

Reported-by: Chen Yi <yiche@redhat.com>
Fixes: 8cc4ccf58379 ("ipset: Allow matching on destination MAC address for mac and ipmac sets")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/ipset/ip_set_hash_ipmac.c