]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8c342475c012d2cdd016a60c6cbff8ebeb3e6b3
treee2c85f776f607b1701e0f647134152ddcc4158d1
parentd2704109a33e8eec0bed9eebc49c0037413752f7
netfilter: ipset: Actually allow destination MAC address for hash:ip,mac sets too

In commit 439b586f30e9 ("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: 439b586f30e9 ("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