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)
commit0e8a835aa59d08d702af0fcfd296e2218b2e344b
treecfc99302895c328a9f394ead9695e8e99ac92de1
parentb32e3dc7860d00124fa432dba09667e647cb9bcc
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