From 764556b980acc1909bf7fd9fbf6b4a898747eea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 13 Feb 2021 12:43:55 +0100 Subject: [PATCH] fff-network: Create separate interface for wan dhcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, an additional wan6 interface for SLAAC has been added, which references the wan interface for its interface. However, OpenWrt waits until the wan interface is completely up, until it tries to start up interfaces that depend on it. This not only can delay the configuration of IPv6 addresses significantly, but also makes configuration of the wan6 interface impossible in WAN networks with out a DHCP server. To solve this issue, a separate interface wan4 for dhcp, which also reference the wan interface, is created and the proto of wan is set to none. Fixes: #114 Signed-off-by: Fabian Bläse Reviewed-by: Robert Langhammer --- src/packages/fff/fff-network/Makefile | 2 +- src/packages/fff/fff-network/files/etc/config/network | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/packages/fff/fff-network/Makefile b/src/packages/fff/fff-network/Makefile index 4cbd3ec8..a5b183a7 100644 --- a/src/packages/fff/fff-network/Makefile +++ b/src/packages/fff/fff-network/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff-network -PKG_RELEASE:=33 +PKG_RELEASE:=34 include $(INCLUDE_DIR)/package.mk diff --git a/src/packages/fff/fff-network/files/etc/config/network b/src/packages/fff/fff-network/files/etc/config/network index 1d540bb5..474e5c19 100644 --- a/src/packages/fff/fff-network/files/etc/config/network +++ b/src/packages/fff/fff-network/files/etc/config/network @@ -9,9 +9,13 @@ config interface 'client' option auto '1' config interface 'wan' - option proto 'dhcp' + option proto 'none' option ifname 'eth2' +config interface 'wan4' + option proto 'dhcp' + option ifname '@wan' + config interface 'wan6' option proto 'dhcpv6' option reqprefix 'no'