net: link_local: Fix netmask endianness bug
authorAlexandre Messier <amessier@tycoint.com>
Tue, 14 Mar 2017 19:03:31 +0000 (15:03 -0400)
committerJoe Hershberger <joe.hershberger@ni.com>
Sun, 26 Mar 2017 14:58:19 +0000 (09:58 -0500)
commit27a0f038a7f8c999fbffa8b26b16b24dc846e1cf
tree37c58475b9d84391474969e56b77565c5847b7d2
parent5c624b9e9ccfbc8640e815202da3511aca4e449e
net: link_local: Fix netmask endianness bug

The network mask must be stored in network order when in a
'struct in_addr'.

This fix removes the "gatewayip needed but not set" message on the
console when using a link-local IP setup.

Signed-off-by: Alexandre Messier <amessier@tycoint.com>
Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/link_local.c