]> git.baikalelectronics.ru Git - kernel.git/commit
af_packet: Teach to listen for multiple unicast addresses.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 19 May 2009 18:27:17 +0000 (18:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2009 22:13:39 +0000 (15:13 -0700)
commite4ffb89f363b19adf5d2441952ff450e8c4cc812
treebbaefa252b6e8f7386073ed27fb9c9f3a64cb55f
parentdb0141d4a6a29f542467fcd36df55db4f940750d
af_packet: Teach to listen for multiple unicast addresses.

The the PACKET_ADD_MEMBERSHIP and the PACKET_DROP_MEMBERSHIP setsockopt
calls for af_packet already has all of the infrastructure needed to subscribe
to multiple mac addresses.  All that is missing is a flag to say that
the address we want to listen on is a unicast address.

So introduce PACKET_MR_UNICAST and wire it up to dev_unicast_add and
dev_unicast_delete.

Additionally I noticed that errors from dev_mc_add were not propagated
from packet_dev_mc so fix that.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_packet.h
net/packet/af_packet.c