projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: emaclite: Use indirect access in emaclite_recv
[oweals/u-boot.git]
/
net
/
rarp.c
diff --git
a/net/rarp.c
b/net/rarp.c
index 204e03cf28ae034ffff82ac802b9ebe695a5ad0f..1fa11b690d218fbda9fd80d26d99746acae10bf9 100644
(file)
--- a/
net/rarp.c
+++ b/
net/rarp.c
@@
-8,10
+8,10
@@
#include <common.h>
#include <command.h>
#include <net.h>
#include <common.h>
#include <command.h>
#include <net.h>
+#include <net/tftp.h>
#include "nfs.h"
#include "bootp.h"
#include "rarp.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
#define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */
#ifndef CONFIG_NET_RETRY_COUNT
@@
-59,9
+59,9
@@
static void rarp_timeout_handler(void)
{
if (rarp_try >= TIMEOUT_COUNT) {
puts("\nRetry count exceeded; starting again\n");
{
if (rarp_try >= TIMEOUT_COUNT) {
puts("\nRetry count exceeded; starting again\n");
-
NetStartA
gain();
+
net_start_a
gain();
} else {
} else {
-
NetSetTimeout
(TIMEOUT, rarp_timeout_handler);
+
net_set_timeout_handler
(TIMEOUT, rarp_timeout_handler);
rarp_request();
}
}
rarp_request();
}
}
@@
-95,5
+95,5
@@
void rarp_request(void)
net_send_packet(net_tx_packet, eth_hdr_size + ARP_HDR_SIZE);
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);
}
}