openwrt/package/base-files/files
Jo-Philipp Wich e5db08edf7 base-files: network.sh: fix a number of IPv6 logic flaws
* Change network_get_subnet6() to sensibly guess a suitable prefix

  Attempt to return the first non-linklocal, non-ula range, then attempt
  to return the first non-linklocal range and finally fall back to the
  previous behaviour of simply returning the first found item.

* Fix network_get_ipaddrs_all()

  Instead of replicating the flawed logic appending a fixed ":1" suffix
  to IPv6 addresses, rely on network_get_ipaddrs() and network_get_ipaddrs6()
  to build a single list of all interface addresses.

* Fix network_get_subnets6()

  Instead of replicating the flawed logic appending a fixed ":1" suffix
  to IPv6 addresses, rely on the ipv6-prefix-assignment.local-address
  field to figure out the proper network address.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-08 23:02:16 +02:00
..
bin base-files: uppercase default hostname: LEDE 2017-02-01 15:40:20 +01:00
etc base-files: add /etc/iproute2/rt_protos 2017-02-01 15:53:20 +01:00
lib base-files: network.sh: fix a number of IPv6 logic flaws 2017-06-08 23:02:16 +02:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: Added a deprecation notice on wifi detect 2017-03-01 20:37:36 +01:00
usr base-files: add ARCH_PACKAGES to openwrt_release and os-release 2017-01-16 13:29:47 +01:00