From 46c495d52400965fc54ada7e0b9024192b9234ba Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 23 May 2012 07:59:22 +0000 Subject: net: Fix net buffer initialization A new non-static function net_init() will initialize buffers and read from the environment. Only update from the env on each entry to NetLoop(). Signed-off-by: Joe Hershberger Acked-by: Simon Glass --- include/net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/net.h b/include/net.h index 9564051..ec41366 100644 --- a/include/net.h +++ b/include/net.h @@ -436,6 +436,7 @@ extern IPaddr_t Mcast_addr; #endif /* Initialize the network adapter */ +extern void net_init(void); extern int NetLoop(enum proto_t); /* Shutdown adapters and cleanup */ -- cgit v1.1