summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6c77ec)
raw | patch | inline | side by side (parent: e6c77ec)
author | Sandeep Paulraj <s-paulraj@ti.com> | |
Fri, 22 Oct 2010 19:28:45 +0000 (15:28 -0400) | ||
committer | Sandeep Paulraj <s-paulraj@ti.com> | |
Fri, 22 Oct 2010 19:28:45 +0000 (15:28 -0400) |
This fixes an issue with the network stack and was preventing
BOOTP from working in the little endian mode
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
BOOTP from working in the little endian mode
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
src/driver/eth/bootp.c | patch | blob | history |
diff --git a/src/driver/eth/bootp.c b/src/driver/eth/bootp.c
index 6a360f08608bfc337e7ebd7b848a1fb2ec0f1435..bce01327dddd39959b09dc0ad82661140c0fa79b 100644 (file)
--- a/src/driver/eth/bootp.c
+++ b/src/driver/eth/bootp.c
if (netmcb.net_device.use_bootp_server_ip == TRUE)
netmcb.net_device.server_ip = serverIP;
- netmcb.net_device.net_mask = htonl(subnetmask);
+ netmcb.net_device.net_mask = subnetmask;
+
ip_add_route (FLG_RT_NETWORK, netmcb.net_device.ip_address, netmcb.net_device.net_mask, 0);
if (netmcb.net_device.use_bootp_file_name == TRUE)