aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_packet.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-05-19 14:27:17 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-21 18:13:39 -0400
commitd95ed9275edcb8995bda31005bb3f55e087626d7 (patch)
treebbaefa252b6e8f7386073ed27fb9c9f3a64cb55f /include/linux/if_packet.h
parentca0f31125c5cf0d48f47c2e1a3785a08876a7e87 (diff)
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>
Diffstat (limited to 'include/linux/if_packet.h')
-rw-r--r--include/linux/if_packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h
index 5b2badeb9497..dea7d6b7cf98 100644
--- a/include/linux/if_packet.h
+++ b/include/linux/if_packet.h
@@ -145,5 +145,6 @@ struct packet_mreq
145#define PACKET_MR_MULTICAST 0 145#define PACKET_MR_MULTICAST 0
146#define PACKET_MR_PROMISC 1 146#define PACKET_MR_PROMISC 1
147#define PACKET_MR_ALLMULTI 2 147#define PACKET_MR_ALLMULTI 2
148#define PACKET_MR_UNICAST 3
148 149
149#endif 150#endif