diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-06-08 19:27:46 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-06-08 23:02:16 +0200 |
commit | e5db08edf7b0d10ca50073107eb05dd3d671cd55 (patch) | |
tree | 539e240cf43473e4e377ec90fd68163cf68bf3f0 /target/linux/xburst/patches-2.6.35/007-power-management.patch | |
parent | 8a42d4d85113c5461d7a3cae3cc4c391d4a5a6ca (diff) | |
download | mtk-20170518-e5db08edf7b0d10ca50073107eb05dd3d671cd55.zip mtk-20170518-e5db08edf7b0d10ca50073107eb05dd3d671cd55.tar.gz mtk-20170518-e5db08edf7b0d10ca50073107eb05dd3d671cd55.tar.bz2 |
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>
Diffstat (limited to 'target/linux/xburst/patches-2.6.35/007-power-management.patch')
0 files changed, 0 insertions, 0 deletions