3f5619f259
By setting 'auto', the zero address or the empty string as source address (option ipaddr, option ip6addr), vxlan will choose one dynamically. This helps in setups where a wan ip or prefix changes. This corresponse to setting up an vxlan tunnel with: proto vxlan6: # ip link add vx0 type vxlan id ID local :: ... proto vxlan: # ip link add vx0 type vxlan id ID local 0.0.0.0 ... While it is possible to not specify a source ip at all, the kernel will default to setting up a ipv4 tunnel. The kernel will take any hint from source and peer ips to figure out, what tunnel type to use. To make sure we setup an ipv6 tunnel for proto vxlan6, this workaround is needed. This will not change the behaviour of currently working configurations. However this will allow former broken configurations, namely those not specifying both a source address and tunnel interface, to setup a tunnel interface. Previously those configurations weren't reporting an error and were stueck in a setup loop like in Bug FS#3426. This change lifts the currently very strict behaviour and should fix the following bug: Fixes: FS#3426 Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3426 Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
34 lines
663 B
Makefile
34 lines
663 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=vxlan
|
|
PKG_RELEASE:=7
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/vxlan
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
|
|
TITLE:=Virtual eXtensible LAN config support
|
|
DEPENDS:=+kmod-vxlan
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/vxlan/description
|
|
Virtual eXtensible LAN config support in /etc/config/network.
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Package/vxlan/install
|
|
$(INSTALL_DIR) $(1)/lib/netifd/proto
|
|
$(INSTALL_BIN) ./files/vxlan.sh $(1)/lib/netifd/proto/vxlan.sh
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,vxlan))
|