Merge tag 'efi-2020-07-rc4' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / net / link_local.c
index dfd240dfbcfd90288de50fdf54c934bbe754549a..8aec3c79969b023e024820e0558072268a1e912e 100644 (file)
  */
 
 #include <common.h>
+#include <env.h>
+#include <log.h>
 #include <net.h>
+#include <rand.h>
 #include "arp.h"
 #include "net_rand.h"
 
@@ -104,7 +107,7 @@ static void configure_wait(void)
 
 void link_local_start(void)
 {
-       ip = getenv_ip("llipaddr");
+       ip = env_get_ip("llipaddr");
        if (ip.s_addr != 0 &&
            (ntohl(ip.s_addr) & IN_CLASSB_NET) != LINKLOCAL_ADDR) {
                puts("invalid link address");