Changeset 40566


Ignore:
Timestamp:
2014-04-24T11:11:44+02:00 (4 years ago)
Author:
cyrus
Message:

6rd: Select first IPv4 address from configured tunlink interface as local tunnel address

Gives the user the control to select the correct WAN IPv4 address to be used by the 6rd tunnel when mutiple WAN interfaces are configured

Signed-off-by: Hans Dedecker <dedeckeh@…>

Location:
trunk/package/network/ipv6/6rd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/ipv6/6rd/Makefile

    r40020 r40566  
    99 
    1010PKG_NAME:=6rd 
    11 PKG_VERSION:=6 
     11PKG_VERSION:=7 
    1212PKG_RELEASE:=1 
    1313 
  • trunk/package/network/ipv6/6rd/files/6rd.sh

    r40020 r40566  
    2727 
    2828        [ -z "$ipaddr" ] && { 
    29                 local wanif 
    30                 if ! network_find_wan wanif || ! network_get_ipaddr ipaddr "$wanif"; then 
     29                local wanif="$tunlink" 
     30                if [ -z $wanif ] && ! network_find_wan wanif; then 
     31                        proto_notify_error "$cfg" "NO_WAN_LINK" 
     32                        return 
     33                fi 
     34 
     35                if ! network_get_ipaddr ipaddr "$wanif"; then 
    3136                        proto_notify_error "$cfg" "NO_WAN_LINK" 
    3237                        return 
Note: See TracChangeset for help on using the changeset viewer.