Modify

Opened 7 years ago

Closed 5 years ago

Last modified 4 years ago

#8633 closed defect (obsolete)

Fix some issues in 6in4

Reported by: yajiedesign@… Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: 6in4, ppp, tunnel Cc:

Description

these two functions of /lib/network/6in4.sh cannot work

find_6in4_wanif() {
        local if=$(ip -4 r l e 0.0.0.0/0); if="${if#default* dev }"; if="${if%%
        [ -n "$if" ] && grep -qs "^ *$if:" /proc/net/dev && echo "$if"
}

find_6in4_wanip() {
        local ip=$(ip -4 a s dev "$1"); ip="${ip#*inet }"
        echo "${ip%%[^0-9.]*}"
}

run "ip -4 r l e 0.0.0.0/0" is return "default via x.x.x.x dev pppoe-wan"
when find_6in4_wanif() run end. $if is "pppoe-wan ".is one more space .
so "ip -4 a s dev "$1"" can't run.
it return "Device "pppoe-wan " does not exist."
want fixed it.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by swalker

  • Owner changed from developers to jow
  • Status changed from new to assigned

comment:2 Changed 5 years ago by nbd

  • Resolution set to obsolete
  • Status changed from assigned to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.