discover: Record IP address of network interfaces
[petitboot] / discover / network.c
index 51a846af8a0c6ae8e75582f1eea619a75e8c1eb7..69223b149adacd0c133beb06de88d06300e324a4 100644 (file)
@@ -384,6 +384,10 @@ static void configure_interface_static(struct network *network,
                return;
        }
 
+       system_info_set_interface_address(sizeof(interface->hwaddr),
+                               interface->hwaddr,
+                               config->static_config.address);
+
        /* we need the interface up before we can route through it */
        rc = interface_up(interface);
        if (rc)