]> git.sur5r.net Git - u-boot/blobdiff - net/rarp.c
Makefile: drop unused cpp_cfg macro
[u-boot] / net / rarp.c
index 204e03cf28ae034ffff82ac802b9ebe695a5ad0f..c1d9fcaf251849ff164f0eb9ece3af3368d8d80d 100644 (file)
@@ -1,17 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2000-2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <command.h>
 #include <net.h>
+#include <net/tftp.h>
 #include "nfs.h"
 #include "bootp.h"
 #include "rarp.h"
-#include "tftp.h"
 
 #define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */
 #ifndef        CONFIG_NET_RETRY_COUNT
@@ -59,9 +58,9 @@ static void rarp_timeout_handler(void)
 {
        if (rarp_try >= TIMEOUT_COUNT) {
                puts("\nRetry count exceeded; starting again\n");
-               NetStartAgain();
+               net_start_again();
        } else {
-               NetSetTimeout(TIMEOUT, rarp_timeout_handler);
+               net_set_timeout_handler(TIMEOUT, rarp_timeout_handler);
                rarp_request();
        }
 }
@@ -95,5 +94,5 @@ void rarp_request(void)
 
        net_send_packet(net_tx_packet, eth_hdr_size + ARP_HDR_SIZE);
 
-       NetSetTimeout(TIMEOUT, rarp_timeout_handler);
+       net_set_timeout_handler(TIMEOUT, rarp_timeout_handler);
 }