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 27851b6b81..dfd240dfbc 100644
--- a/net/link_local.c
+++ b/net/link_local.c
@@ -111,7 +111,7 @@ void link_local_start(void)
net_set_state(NETLOOP_FAIL);
return;
}
- net_netmask.s_addr = IN_CLASSB_NET;
+ net_netmask.s_addr = htonl(IN_CLASSB_NET);
seed = seed_mac();
if (ip.s_addr == 0)