]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix address check in rtnl_fdb_del
authorVlad Yasevich <vyasevic@redhat.com>
Tue, 23 Apr 2013 11:05:23 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 08:14:08 +0000 (04:14 -0400)
commit479af6c12f9fcd4ad3e52b92bed3259cba02f57a
tree5a58c6c80f6ff19e6c70d1f7fbd9d4405bab7f88
parentac26a04f7e3243189f8585858586f67851542306
net: fix address check in rtnl_fdb_del

Commit 9d331eecd43fcb0cac47f997f2013c58f7f7dee9
vxlan: generalize forwarding tables

relaxed the address checks in rtnl_fdb_del() to use is_zero_ether_addr().
This allows users to add multicast addresses using the fdb API.  However,
the check in rtnl_fdb_del() still uses a more strict
is_valid_ether_addr() which rejects multicast addresses.  Thus it
is possible to add an fdb that can not be later removed.
Relax the check in rtnl_fdb_del() as well.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c