Jiri Pirko 1162563f82 af_packet: move strict addr_len check right before dev_[mc/unicast]_[add/del]
My previous patch 914c8ad2d18b62ad1420f518c0cab0b0b90ab308 incorrectly changed
the length check in packet_mc_add to be more strict. The problem is that
userspace is not filling this field (and it stays zeroed) in case of setting
PACKET_MR_PROMISC or PACKET_MR_ALLMULTI. So move the strict check to the point
in path where the addr_len must be set correctly.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Reported-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-03-03 01:04:38 -08:00
..
2010-02-10 12:31:10 -08:00
2010-02-18 14:30:18 -08:00
2009-11-25 15:14:13 -08:00
2009-12-26 20:38:23 -08:00
2010-03-03 01:04:37 -08:00
2010-03-03 01:04:37 -08:00
2010-02-10 12:31:10 -08:00
2010-02-18 14:30:18 -08:00
2009-12-15 08:53:25 -08:00
2010-02-22 16:21:12 -08:00
2010-01-17 19:16:02 -08:00
2009-11-25 15:14:13 -08:00
2010-02-17 00:03:27 -08:00
2010-01-19 14:23:57 -08:00
2010-02-18 14:12:06 -08:00
2010-02-18 14:30:18 -08:00
2010-03-03 01:04:37 -08:00
2009-12-17 10:51:40 -05:00