Ethernet Bridge development
 help / color / mirror / Atom feed
From: Maxime Bizon <mbizon@freebox.fr>
To: stephen@networkplumber.org
Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org,
	davem@davemloft.net, Maxime Bizon <mbizon@freebox.fr>
Subject: [Bridge] [PATCH] bridge: mark packets sent to any local mac address as PACKET_HOST
Date: Mon, 23 Jun 2014 14:43:37 -0000	[thread overview]
Message-ID: <1403534015-28496-1-git-send-email-mbizon@freebox.fr> (raw)

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


             reply	other threads:[~2014-06-23 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23 14:43 Maxime Bizon [this message]
2014-06-25 23:09 ` [Bridge] [PATCH] bridge: mark packets sent to any local mac address as PACKET_HOST 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403534015-28496-1-git-send-email-mbizon@freebox.fr \
    --to=mbizon@freebox.fr \
    --cc=bridge@lists.linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox