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)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 29 Jul 2019 19:16:57 +0000 (21:16 +0200)
commitb89d15480d0cacacae1a0fe0b3da01b529f2914f
treee2c85f776f607b1701e0f647134152ddcc4158d1
parent91826ba13855f73e252fef68369b3b0e1ed25253
netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too

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>
net/netfilter/ipset/ip_set_hash_ipmac.c