diff mbox

[RFC] bridge: mark packets sent to any local mac address as PACKET_HOST

Message ID 1398189018.19788.2.camel@sakura.staff.proxad.net
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Maxime Bizon April 22, 2014, 5:50 p.m. UTC
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(+)

Comments

Sergei Shtylyov April 22, 2014, 6:01 p.m. UTC | #1
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

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 	}