Skip to content
Snippets Groups Projects
Commit 28241146 authored by Felix Fietkau's avatar Felix Fietkau Committed by Oussama Ghorbel
Browse files

bridge: only accept EAP locally


When bridging, do not forward EAP frames to other ports, only deliver
them locally, regardless of the state.

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 67e49292
No related branches found
No related tags found
No related merge requests found
......@@ -164,11 +164,14 @@ int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb
}
}
BR_INPUT_SKB_CB(skb)->brdev = br->dev;
if (skb->protocol == htons(ETH_P_PAE))
return br_pass_frame_up(skb);
if (p->state == BR_STATE_LEARNING)
goto drop;
BR_INPUT_SKB_CB(skb)->brdev = br->dev;
if (IS_ENABLED(CONFIG_INET) && skb->protocol == htons(ETH_P_ARP))
br_do_proxy_arp(skb, br, vid, p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment