]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: Fix multicast device ioctl checks
authorPatrick McHardy <kaber@trash.net>
Wed, 26 Mar 2008 09:12:11 +0000 (02:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2008 09:12:11 +0000 (02:12 -0700)
commit61ee6bd487b9cc160e533034eb338f2085dc7922
tree33502a9da58f26f3b948f18288c0669b898db030
parent8c7230f781749cd7261b504c0bfa188bb96e77ee
[NET]: Fix multicast device ioctl checks

SIOCADDMULTI/SIOCDELMULTI check whether the driver has a set_multicast_list
method to determine whether it supports multicast. Drivers implementing
secondary unicast support use set_rx_mode however.

Check for both dev->set_multicast_mode and dev->set_rx_mode to determine
multicast capabilities.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c