aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-05 14:15:44 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-08 16:45:08 +0100
commit57a9633a2c6c3be56c794576157f057a70ac52df (patch)
treea8d76560e0cec6fdc3e2963e5a5d7232cf2bb0f4 /target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch
parent28fd4ac512ec1c08a79ac7a434b2def3cc82f1d5 (diff)
downloadupstream-57a9633a2c6c3be56c794576157f057a70ac52df.tar.gz
upstream-57a9633a2c6c3be56c794576157f057a70ac52df.tar.bz2
upstream-57a9633a2c6c3be56c794576157f057a70ac52df.zip
kernel: remove support for kernel 4.9
No target uses kernel 4.9 anymore. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch')
-rw-r--r--target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch83
1 files changed, 0 insertions, 83 deletions
diff --git a/target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch b/target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch
deleted file mode 100644
index 819314f74a..0000000000
--- a/target/linux/generic/hack-4.9/640-bridge-only-accept-EAP-locally.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-From: Felix Fietkau <nbd@nbd.name>
-Date: Fri, 7 Jul 2017 17:18:54 +0200
-Subject: 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: Felix Fietkau <nbd@nbd.name>
-[add disable_eap_hack sysfs attribute]
-Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
----
-
---- a/net/bridge/br_input.c
-+++ b/net/bridge/br_input.c
-@@ -164,11 +164,14 @@ int br_handle_frame_finish(struct net *n
- }
- }
-
-+ BR_INPUT_SKB_CB(skb)->brdev = br->dev;
-+
-+ if (skb->protocol == htons(ETH_P_PAE) && !br->disable_eap_hack)
-+ 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);
-
---- a/net/bridge/br_private.h
-+++ b/net/bridge/br_private.h
-@@ -295,6 +295,8 @@ struct net_bridge
- u16 group_fwd_mask;
- u16 group_fwd_mask_required;
-
-+ bool disable_eap_hack;
-+
- /* STP */
- bridge_id designated_root;
- bridge_id bridge_id;
---- a/net/bridge/br_sysfs_br.c
-+++ b/net/bridge/br_sysfs_br.c
-@@ -169,6 +169,30 @@ static ssize_t group_fwd_mask_store(stru
- }
- static DEVICE_ATTR_RW(group_fwd_mask);
-
-+static ssize_t disable_eap_hack_show(struct device *d,
-+ struct device_attribute *attr,
-+ char *buf)
-+{
-+ struct net_bridge *br = to_bridge(d);
-+ return sprintf(buf, "%u\n", br->disable_eap_hack);
-+}
-+
-+static int set_disable_eap_hack(struct net_bridge *br, unsigned long val)
-+{
-+ br->disable_eap_hack = !!val;
-+
-+ return 0;
-+}
-+
-+static ssize_t disable_eap_hack_store(struct device *d,
-+ struct device_attribute *attr,
-+ const char *buf,
-+ size_t len)
-+{
-+ return store_bridge_parm(d, buf, len, set_disable_eap_hack);
-+}
-+static DEVICE_ATTR_RW(disable_eap_hack);
-+
- static ssize_t priority_show(struct device *d, struct device_attribute *attr,
- char *buf)
- {
-@@ -780,6 +804,7 @@ static struct attribute *bridge_attrs[]
- &dev_attr_ageing_time.attr,
- &dev_attr_stp_state.attr,
- &dev_attr_group_fwd_mask.attr,
-+ &dev_attr_disable_eap_hack.attr,
- &dev_attr_priority.attr,
- &dev_attr_bridge_id.attr,
- &dev_attr_root_id.attr,