netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bridge: mark packets sent to any local mac address as PACKET_HOST
@ 2014-06-23 14:33 Maxime Bizon
  2014-06-25 23:09 ` David Miller
  2014-06-25 23:13 ` Stephen Hemminger
  0 siblings, 2 replies; 6+ messages in thread
From: Maxime Bizon @ 2014-06-23 14:33 UTC (permalink / raw)
  To: stephen; +Cc: davem, netdev, bridge, Maxime Bizon

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
layers, but ignored because they are marked as PACKET_OTHERHOST.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 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 366c436..b9cc8554 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-26 21:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 14:33 [PATCH] bridge: mark packets sent to any local mac address as PACKET_HOST Maxime Bizon
2014-06-25 23:09 ` David Miller
2014-06-25 23:13 ` Stephen Hemminger
2014-06-26 11:15   ` Maxime Bizon
2014-06-26 20:35     ` David Miller
2014-06-26 21:19       ` Maxime Bizon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).