luci/libs
Niels Widger 87bcf9e923 rpcd-mod-luci: Return array of addresses in getHostHints
Update luci-rpc's getHostHints method to return two string arrays for
each host, `ipaddrs` and `ip6addrs`, each containing the host's IPv4
and IPv6 addresses, respectively.  Each array is sorted by a priority
derived from the source from which the address was discovered.  The
current address sources and their priority is as follows (a
higher (larger) priority is listed first):

    - neighbor table entries: 10
    - /etc/ethers entries:    50
    - DHCP leasefile:        100
    - RRDNS queries:         100
    - getifaddrs():          200
    - UCI static leases:     200

The existing `ipv4` and `ipv6` string fields for each host in
`getHostHints` has been removed.  Downstream users of getHostHints
still need to be updated.

Fixes: #4838
Signed-off-by: Niels Widger <niels@qacafe.com>
[squash commits, reformat fixes tag]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a5195e7825)
2021-06-12 19:23:25 +02:00
..
luci-lib-base luci-base: Add possiblity to set path and timeout of ubus connection 2020-08-19 13:00:49 +02:00
luci-lib-httpclient luci-base: move some generic classes into a separate luci-base-libs package 2020-07-19 20:14:22 +02:00
luci-lib-httpprotoutils luci-base: move some generic classes into a separate luci-base-libs package 2020-07-19 20:14:22 +02:00
luci-lib-ip luci-lib-ip: fix tolinklocal invalid ipv6 result 2020-09-06 18:15:29 -03:00
luci-lib-ipkg luci-lib-ipkg: move out of luci-base 2018-11-14 20:46:04 +01:00
luci-lib-iptparser luci-lib-iptparser: fix packaging 2018-10-11 08:00:03 +02:00
luci-lib-json Revert "luci-lib-json: depend on luci-base" 2018-07-03 12:30:44 +02:00
luci-lib-jsonc luci-lib-jsonc: store large JSON integer values as Lua doubles 2019-11-13 09:11:09 +01:00
luci-lib-nixio treewide: replace which with command -v 2020-08-20 15:54:54 -10:00
luci-lib-px5g treewide: Fix typos in comments 2018-10-10 15:00:07 +08:00
luci-lib-rpcc Fix module lines in several luadoc files 2015-09-01 16:43:19 +02:00
rpcd-mod-luci rpcd-mod-luci: Return array of addresses in getHostHints 2021-06-12 19:23:25 +02:00
rpcd-mod-rad2-enc rpcd-mod-*: improve postinst script 2020-12-07 17:01:17 +01:00
rpcd-mod-rrdns rpcd-mod-*: improve postinst script 2020-12-07 17:01:17 +01:00