Skip to content

Commit

Permalink
[LLC]: multicast receive device match
Browse files Browse the repository at this point in the history
Fix from Aji_Srinivas@emc.com, STP packets are incorrectly received on
all LLC datagram sockets, whichever interface they are bound to.  The
llc_sap datagram receive logic sends packets with a unicast
destination MAC to one socket bound to that SAP and MAC, and multicast
packets to all sockets bound to that SAP. STP packets are multicast,
and we do need to know on which interface they were received.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Aug 14, 2006
1 parent d49c73c commit 7ee66fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/llc/llc_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ static void llc_sap_mcast(struct llc_sap *sap,
if (llc->laddr.lsap != laddr->lsap)
continue;

if (llc->dev != skb->dev)
continue;

skb1 = skb_clone(skb, GFP_ATOMIC);
if (!skb1)
break;
Expand Down

0 comments on commit 7ee66fc

Please sign in to comment.