summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-19 15:56:49 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:22 +1100
commit0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d (patch)
tree02b8930345eea0a0e0c11673ffac1cfe22495afc /test
parentf901ce58f58ad4f7d769140fe98426e5ac9f7759 (diff)
downloadtalos-petitboot-0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d.zip
talos-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 'test')
-rw-r--r--test/parser/handler.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/parser/handler.c b/test/parser/handler.c
index 43e9d71..e356407 100644
--- a/test/parser/handler.c
+++ b/test/parser/handler.c
@@ -38,6 +38,14 @@ void discover_server_notify_boot_status(struct discover_server *server,
(void)status;
}
+void system_info_set_interface_address(unsigned int hwaddr_size,
+ uint8_t *hwaddr, const char *address)
+{
+ (void)hwaddr_size;
+ (void)hwaddr;
+ (void)address;
+}
+
void discover_server_notify_config(struct discover_server *server,
struct config *config)
{
OpenPOWER on IntegriCloud