From: Stephen Hemminger Date: Mon, 14 Aug 2006 01:56:26 +0000 (-0700) Subject: [LLC]: multicast receive device match X-Git-Tag: v2.6.18-rc5~99 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=7ee66fcb94cb8be77d5f34cce7d315d11759f9c1;hp=d49c73c729e2ef644558a1f441c044bfacdc9744;p=safe%2Fjmp%2Flinux-2.6 [LLC]: multicast receive device match 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 Signed-off-by: David S. Miller --- diff --git a/net/llc/llc_sap.c b/net/llc/llc_sap.c index 42eb0c3..61cb8cf 100644 --- a/net/llc/llc_sap.c +++ b/net/llc/llc_sap.c @@ -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;