aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-07-28 12:08:47 +0200
committerFelix Fietkau <nbd@nbd.name>2021-07-28 12:41:36 +0200
commitf1b98fa4fa8a86a9daf2a7177235f28cbd7c53ef (patch)
treeaffae7b2ef19c4b800acc9867aa086d36be0c39c /package
parentae1c5d0d6af60d0467899f5730a2f01aa72137f7 (diff)
downloadupstream-f1b98fa4fa8a86a9daf2a7177235f28cbd7c53ef.tar.gz
upstream-f1b98fa4fa8a86a9daf2a7177235f28cbd7c53ef.tar.bz2
upstream-f1b98fa4fa8a86a9daf2a7177235f28cbd7c53ef.zip
hostapd: add missing chunk for the snoop interface fix
Fixes: 7b46377a0cd9 ("hostapd: make the snooping interface (for proxyarp) configurable") Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/patches/740-snoop_iface.patch11
1 files changed, 7 insertions, 4 deletions
diff --git a/package/network/services/hostapd/patches/740-snoop_iface.patch b/package/network/services/hostapd/patches/740-snoop_iface.patch
index ded9d33f79..722d1e713a 100644
--- a/package/network/services/hostapd/patches/740-snoop_iface.patch
+++ b/package/network/services/hostapd/patches/740-snoop_iface.patch
@@ -10,17 +10,20 @@
--- a/src/ap/x_snoop.c
+++ b/src/ap/x_snoop.c
-@@ -71,6 +71,10 @@ x_snoop_get_l2_packet(struct hostapd_dat
+@@ -71,8 +71,12 @@ x_snoop_get_l2_packet(struct hostapd_dat
{
struct hostapd_bss_config *conf = hapd->conf;
struct l2_packet_data *l2;
+ const char *ifname = conf->bridge;
-+
+
+- l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1);
+ if (conf->snoop_iface[0])
+ ifname = conf->snoop_iface;
-
- l2 = l2_packet_init(conf->bridge, NULL, ETH_P_ALL, handler, hapd, 1);
++
++ l2 = l2_packet_init(ifname, NULL, ETH_P_ALL, handler, hapd, 1);
if (l2 == NULL) {
+ wpa_printf(MSG_DEBUG,
+ "x_snoop: Failed to initialize L2 packet processing %s",
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2357,6 +2357,8 @@ static int hostapd_config_fill(struct ho