summaryrefslogtreecommitdiff
path: root/net/net.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 08:00:12 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:53:08 -0500
commitd22c338e07cc98276ea5cc4feaa5a370baa63243 (patch)
treeac72ae8a2d99ba9b48757aa148a8fe1b5f1cdd7d /net/net.c
parent228041893c2b6f79326f4b49ee7b3b3a90e90e8e (diff)
downloadu-boot-imx-d22c338e07cc98276ea5cc4feaa5a370baa63243.zip
u-boot-imx-d22c338e07cc98276ea5cc4feaa5a370baa63243.tar.gz
u-boot-imx-d22c338e07cc98276ea5cc4feaa5a370baa63243.tar.bz2
net: Add link-local addressing support
Code based on networking/zcip.c in busybox commit 8531d76a15890c2c535908ce888b2e2aed35b172 Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index aa1ff48..4f4b34b 100644
--- a/net/net.c
+++ b/net/net.c
@@ -23,6 +23,12 @@
* - name of bootfile
* Next step: ARP
*
+ * LINK_LOCAL:
+ *
+ * Prerequisites: - own ethernet address
+ * We want: - own IP address
+ * Next step: ARP
+ *
* RARP:
*
* Prerequisites: - own ethernet address
@@ -89,6 +95,7 @@
#if defined(CONFIG_CMD_DNS)
#include "dns.h"
#endif
+#include "link_local.h"
#include "nfs.h"
#include "ping.h"
#include "rarp.h"
@@ -402,6 +409,11 @@ restart:
DnsStart();
break;
#endif
+#if defined(CONFIG_CMD_LINK_LOCAL)
+ case LINKLOCAL:
+ link_local_start();
+ break;
+#endif
default:
break;
}
@@ -1194,6 +1206,7 @@ common:
case BOOTP:
case CDP:
case DHCP:
+ case LINKLOCAL:
if (memcmp(NetOurEther, "\0\0\0\0\0\0", 6) == 0) {
int num = eth_get_dev_index();