]> git.ipfire.org Git - thirdparty/ipset.git/commit
ipset: Make invalid MAC address checks consistent
authorStefano Brivio <sbrivio@redhat.com>
Fri, 17 Aug 2018 19:09:48 +0000 (21:09 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 30 Aug 2018 08:31:05 +0000 (10:31 +0200)
commit9998f795bac2611e2a8fabd5dd9c264077c9a980
tree6661deeb005cff207206e209e315025633e3a710
parent1543514c46a7a552aca0e1bb74d66ea98ecf3e38
ipset: Make invalid MAC address checks consistent

Set types bitmap:ipmac and hash:ipmac check that MAC addresses
are not all zeroes.

Introduce one missing check, and make the remaining ones
consistent, using is_zero_ether_addr() instead of comparing
against an array containing zeroes.

This was already done for hash:mac sets in commit 26c97c5d8dac
("netfilter: ipset: Use is_zero_ether_addr instead of static and
memcmp").

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.c
kernel/net/netfilter/ipset/ip_set_hash_ipmac.c