diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-19 15:56:49 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 16:40:22 +1100 |
commit | 0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d (patch) | |
tree | 02b8930345eea0a0e0c11673ffac1cfe22495afc /discover/sysinfo.h | |
parent | f901ce58f58ad4f7d769140fe98426e5ac9f7759 (diff) | |
download | petitboot-0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d.zip petitboot-0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d.tar.gz |
discover: Record IP address of network interfaces
If an interface has a valid IP address (either via DHCP or static
config) store it in the interface_info struct so it can be referenced
later.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/sysinfo.h')
-rw-r--r-- | discover/sysinfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/sysinfo.h b/discover/sysinfo.h index 7181c99..19ed950 100644 --- a/discover/sysinfo.h +++ b/discover/sysinfo.h @@ -7,6 +7,8 @@ struct discover_server; const struct system_info *system_info_get(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, const char *name, bool link); void system_info_register_blockdev(const char *name, const char *uuid, |