]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: bitmap:ip,mac type requires "src" for MAC
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 13 Apr 2011 11:43:23 +0000 (13:43 +0200)
committerPatrick McHardy <kaber@trash.net>
Wed, 13 Apr 2011 11:43:23 +0000 (13:43 +0200)
commit5bbef73330c8ec3a69a49ec67ac466bb2a459469
treecfc99302895c328a9f394ead9695e8e99ac92de1
parent493941ed1095990246bf007dc489a24062954975
netfilter: ipset: bitmap:ip,mac type requires "src" for MAC

Enforce that the second "src/dst" parameter of the set match and SET target
must be "src", because we have access to the source MAC only in the packet.
The previous behaviour, that the type required the second parameter
but actually ignored the value was counter-intuitive and confusing.

Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/ipset/ip_set_bitmap_ipmac.c