6in4: delete tunnel on interface teardown
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 2 Aug 2021 11:41:21 +0000 (13:41 +0200)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 12 Aug 2021 19:00:31 +0000 (20:00 +0100)
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 <ansuelsmth@gmail.com>
package/network/ipv6/6in4/Makefile
package/network/ipv6/6in4/files/6in4.sh

index 08696ef7a8915d021e2bfcbb0fd4a805a7b27635..331295ba7ada456c5b6768b763b765424b0e79d5 100644 (file)
@@ -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
index 5b5c7b36af9cd18732a6958ec28d21dc37885137..d0904952fdf316c7106bf9146160d16971e62619 100755 (executable)
@@ -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() {