Date:2010-08-19 02:59:05 (13 years 7 months ago)
Author:jow
Commit:28ddaa0be90eb40be1de43e973260b7be20872c3
Message:[package] 6in4: bypass uci state when reading local IPv4 addr, specify TTL during tunnel creation (#7769)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22708 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/6in4/Makefile (1 diff)
package/6in4/files/6in4.sh (2 diffs)

Change Details

package/6in4/Makefile
88include $(TOPDIR)/rules.mk
99
1010PKG_NAME:=6in4
11PKG_VERSION:=4
11PKG_VERSION:=5
1212PKG_RELEASE:=1
1313
1414include $(INCLUDE_DIR)/package.mk
package/6in4/files/6in4.sh
2828    local cfg="$2"
2929    local link="6in4-$cfg"
3030
31    local local4
32    config_get local4 "$cfg" ipaddr
31    local local4=$(uci_get network "$cfg" local4)
3332
3433    local remote4
3534    config_get remote4 "$cfg" peeraddr
...... 
6261        uci_set_state network "$cfg" ifname $link
6362        uci_set_state network "$cfg" auto 0
6463
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}
6665        ip link set $link up
6766        ip link set mtu ${mtu:-1280} dev $link
68        ip tunnel change $link ttl ${ttl:-64}
6967        ip addr add $local6 dev $link
7068
7169        uci_set_state network "$cfg" ipaddr $local4

Archive Download the corresponding diff file



interactive