summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-08-19 14:20:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-13 10:49:21 +0200
commit9296260a7858f0e9cb4d0123bdabd72f1e457bbd (patch)
tree1759e33bbd3ffed2fad8007f53ad753ef3f8c036 /net/net.c
parent3487f1ee8e0345ed22c6097be4466c0b96590604 (diff)
downloadbarebox-9296260a7858f0e9cb4d0123bdabd72f1e457bbd.tar.gz
net: split NetLoop in NetLoop and NetLoopInit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/net.c b/net/net.c
index 5aa51a5e06..7d94a3f733 100644
--- a/net/net.c
+++ b/net/net.c
@@ -238,8 +238,7 @@ void ArpTimeoutCheck(void)
* Main network processing loop.
*/
-int
-NetLoop(proto_t protocol)
+int NetLoopInit(proto_t protocol)
{
struct eth_device *eth_current = eth_get_current();
IPaddr_t ip;
@@ -292,6 +291,11 @@ NetLoop(proto_t protocol)
NetOurNativeVLAN = getenv_VLAN("nvlan");
NetServerIP = dev_get_param_ip(&eth_current->dev, "serverip");
+ return 0;
+}
+
+int NetLoop(proto_t protocol)
+{
/*
* Start the ball rolling with the given start function. From
* here on, this code is a state machine driven by received