diff options
author | Niels Widger <niels@qacafe.com> | 2021-03-01 14:33:33 -0500 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-06-03 09:51:09 +0200 |
commit | a5195e7825cbbc3942ca6e571ae0020c1cf080c4 (patch) | |
tree | 7abe877e9d338f0e0a4b08664c67591b8ccdbc7d /modules/luci-base/htdocs | |
parent | 2b11ec6fd02be060443cf4afc9d89058aadcfab3 (diff) |
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>
Diffstat (limited to 'modules/luci-base/htdocs')
0 files changed, 0 insertions, 0 deletions