diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-05-23 14:39:17 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-10 14:42:56 +1000 |
commit | 735a9ed99a56df4e6bc496bdbe30a5aaa80a9685 (patch) | |
tree | 8732d8c53ba2fa2875f1141e30333cbec40a451c /discover/sysinfo.h | |
parent | d30872fe40c87300e62ef2aea484b9cea618c9de (diff) | |
download | talos-petitboot-735a9ed99a56df4e6bc496bdbe30a5aaa80a9685.tar.gz talos-petitboot-735a9ed99a56df4e6bc496bdbe30a5aaa80a9685.zip |
discover: Determine connectivity with getaddrinfo()
Use getaddrinfo() to determine if a remote URL is reachable instead of
only checking if we have an addresses configured. This avoids, for
example, trying to load an IPv4 URL when only an IPv6 address is
available.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/sysinfo.h')
-rw-r--r-- | discover/sysinfo.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/discover/sysinfo.h b/discover/sysinfo.h index 835dfbe..c570951 100644 --- a/discover/sysinfo.h +++ b/discover/sysinfo.h @@ -7,7 +7,6 @@ struct discover_server; const struct system_info *system_info_get(void); -bool system_info_network_available(void); void system_info_set_interface_address(unsigned int hwaddr_size, uint8_t *hwaddr, const char *address); void system_info_register_interface(unsigned int hwaddr_size, uint8_t *hwaddr, |