jeremycollake / x-wrt

Automatically exported from code.google.com/p/x-wrt
3 stars 0 forks source link

Wrong IPv6 address for loopback in status-interfaces #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Webif shows the br-lan IPv6 address for the loopback device. It should be ::1.

the problem line of status-interfaces.sh is:

ip6_addr=$(echo "$config" |grep "inet6 addr:" | grep "Global" |cut -d' ' -f 13)

This can never get the loopback address as it is, by definition, with the
scope "Host". But fortunately, it is also, by definition, always [::1]. So
there should be probably should be just a special case for loopback.

Or better, show all IPv6 addresses of an interfaces with their scopes. 

Original issue reported on code.google.com by kemen04@gmail.com on 9 Jul 2008 at 8:53

GoogleCodeExporter commented 9 years ago
fixed r4364

Original comment by kemen04@gmail.com on 16 Jul 2008 at 7:08