Change Details
| package/6in4/Makefile |
| 8 | 8 | include $(TOPDIR)/rules.mk |
| 9 | 9 | |
| 10 | 10 | PKG_NAME:=6in4 |
| 11 | | PKG_VERSION:=4 |
| 11 | PKG_VERSION:=5 |
| 12 | 12 | PKG_RELEASE:=1 |
| 13 | 13 | |
| 14 | 14 | include $(INCLUDE_DIR)/package.mk |
| package/6in4/files/6in4.sh |
| 28 | 28 | local cfg="$2" |
| 29 | 29 | local link="6in4-$cfg" |
| 30 | 30 | |
| 31 | | local local4 |
| 32 | | config_get local4 "$cfg" ipaddr |
| 31 | local local4=$(uci_get network "$cfg" local4) |
| 33 | 32 | |
| 34 | 33 | local remote4 |
| 35 | 34 | config_get remote4 "$cfg" peeraddr |
| ... | ... | |
| 62 | 61 | uci_set_state network "$cfg" ifname $link |
| 63 | 62 | uci_set_state network "$cfg" auto 0 |
| 64 | 63 | |
| 65 | | ip tunnel add $link mode sit remote $remote4 local $local4 ttl 255 |
| 64 | ip tunnel add $link mode sit remote $remote4 local $local4 ttl ${ttl:-64} |
| 66 | 65 | ip link set $link up |
| 67 | 66 | ip link set mtu ${mtu:-1280} dev $link |
| 68 | | ip tunnel change $link ttl ${ttl:-64} |
| 69 | 67 | ip addr add $local6 dev $link |
| 70 | 68 | |
| 71 | 69 | uci_set_state network "$cfg" ipaddr $local4 |
Download the corresponding diff file