فهرست منبع

6in4: delete tunnel on interface teardown

Delete tunnel on 6in4 interface teardown.
Should solve problem related to tunnel stuck on restart loop
with "Unknown Command" on tunnel restart due to wan connection drop.
Fixes: FS#3690

Signed-off-by: Ansuel Smith <[email protected]>
Ansuel Smith 4 سال پیش
والد
کامیت
0530c490ee
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 1
      package/network/ipv6/6in4/Makefile
  2. 2 0
      package/network/ipv6/6in4/files/6in4.sh

+ 1 - 1
package/network/ipv6/6in4/Makefile

@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=6in4
-PKG_RELEASE:=26
+PKG_RELEASE:=27
 PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk

+ 2 - 0
package/network/ipv6/6in4/files/6in4.sh

@@ -138,6 +138,8 @@ proto_6in4_setup() {
 
 proto_6in4_teardown() {
 	local cfg="$1"
+	local link="6in4-$cfg"
+	ip link del $link
 }
 
 proto_6in4_init_config() {