summaryrefslogtreecommitdiff
path: root/net/link_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/link_local.c')
-rw-r--r--net/link_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/link_local.c b/net/link_local.c
index d52f13adb4..1ba796ebdf 100644
--- a/net/link_local.c
+++ b/net/link_local.c
@@ -103,7 +103,7 @@ static void configure_wait(void)
void link_local_start(void)
{
ip = getenv_IPaddr("llipaddr");
- if (ip != 0 && (ip & IN_CLASSB_NET) != LINKLOCAL_ADDR) {
+ if (ip != 0 && (ntohl(ip) & IN_CLASSB_NET) != LINKLOCAL_ADDR) {
puts("invalid link address");
net_set_state(NETLOOP_FAIL);
return;