From: Jouni Malinen <jouni@codeaurora.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Kyeyoon Park <kyeyoonp@codeaurora.org>,
Jouni Malinen <jouni@codeaurora.org>
Subject: [PATCH 3/3] bridge: Allow proxy ARP for unicast ARP requests
Date: Wed, 4 Feb 2015 11:51:07 +0200 [thread overview]
Message-ID: <1423043467-11148-3-git-send-email-jouni@codeaurora.org> (raw)
In-Reply-To: <1423043467-11148-1-git-send-email-jouni@codeaurora.org>
From: Kyeyoon Park <kyeyoonp@codeaurora.org>
It is possible for unicast ARP requests to be used and the same proxyarp
mechanism should work for them as well as for the broadcast case.
Signed-off-by: Kyeyoon Park <kyeyoonp@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
---
net/bridge/br_input.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
index 41d1d3f..c60100f 100644
--- a/net/bridge/br_input.c
+++ b/net/bridge/br_input.c
@@ -157,11 +157,11 @@ int br_handle_frame_finish(struct sk_buff *skb)
dst = NULL;
- if (is_broadcast_ether_addr(dest)) {
- if (IS_ENABLED(CONFIG_INET) &&
- skb->protocol == htons(ETH_P_ARP))
- br_do_proxy_arp(skb, br, vid);
+ if (IS_ENABLED(CONFIG_INET) &&
+ skb->protocol == htons(ETH_P_ARP))
+ br_do_proxy_arp(skb, br, vid);
+ if (is_broadcast_ether_addr(dest)) {
skb2 = skb;
unicast = false;
} else if (is_multicast_ether_addr(dest)) {
--
1.9.1
next prev parent reply other threads:[~2015-02-04 9:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-04 9:51 [PATCH 1/3] bridge: Base the BR_PROXYARP decision on the target port flag Jouni Malinen
2015-02-04 9:51 ` [PATCH 2/3] bridge: Selectively prevent bridge port flooding for proxy ARP Jouni Malinen
2015-02-04 9:51 ` Jouni Malinen [this message]
2015-02-04 23:13 ` [PATCH 1/3] bridge: Base the BR_PROXYARP decision on the target port flag Stephen Hemminger
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=1423043467-11148-3-git-send-email-jouni@codeaurora.org \
--to=jouni@codeaurora.org \
--cc=davem@davemloft.net \
--cc=kyeyoonp@codeaurora.org \
--cc=netdev@vger.kernel.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).