From: Maxime Bizon <mbizon@freebox.fr>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: bridge@lists.linux-foundation.org, netdev <netdev@vger.kernel.org>
Subject: [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST
Date: Tue, 22 Apr 2014 19:50:18 +0200 [thread overview]
Message-ID: <1398189018.19788.2.camel@sakura.staff.proxad.net> (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
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
next reply other threads:[~2014-04-22 17:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 17:50 Maxime Bizon [this message]
2014-04-22 18:01 ` [PATCH][RFC] bridge: mark packets sent to any local mac address as PACKET_HOST Sergei Shtylyov
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=1398189018.19788.2.camel@sakura.staff.proxad.net \
--to=mbizon@freebox.fr \
--cc=bridge@lists.linux-foundation.org \
--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;
as well as URLs for NNTP newsgroup(s).