* [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST
@ 2014-04-22 17:50 Maxime Bizon
2014-04-22 18:01 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Maxime Bizon @ 2014-04-22 17:50 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: bridge, netdev
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST
2014-04-22 17:50 [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST Maxime Bizon
@ 2014-04-22 18:01 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2014-04-22 18:01 UTC (permalink / raw)
To: mbizon, Stephen Hemminger; +Cc: netdev, bridge
Hello.
On 04/22/2014 09:50 PM, Maxime Bizon wrote:
> 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.
You forgot to sign off.
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-22 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 17:50 [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST Maxime Bizon
2014-04-22 18:01 ` Sergei Shtylyov
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).