From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1398189018.19788.2.camel@sakura.staff.proxad.net> From: Maxime Bizon Content-Type: text/plain; charset="ANSI_X3.4-1968" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [Bridge] [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST Reply-To: mbizon@freebox.fr List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 22 Apr 2014 17:59:06 -0000 To: Stephen Hemminger Cc: netdev , bridge@lists.linux-foundation.org The bridge code only set PACKET_HOST on packets sent to the bridge mac address, packets sent to other local mac addresses are sent to upper layer, but ignored because they are marked as PACKET_OTHERHOST. --- net/bridge/br_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 7985dea..b942561 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c @@ -120,6 +120,7 @@ int br_handle_frame_finish(struct sk_buff *skb) dst->is_local) { skb2 = skb; /* Do not forward the packet since it's local. */ + skb2->pkt_type = PACKET_HOST; skb = NULL; } -- 1.7.9.5 -- Maxime