c6x-IBl: BOOTP: Fixed issue with BOOTP
authorSandeep Paulraj <s-paulraj@ti.com>
Fri, 22 Oct 2010 19:28:45 +0000 (15:28 -0400)
committerSandeep 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>
src/driver/eth/bootp.c

index 6a360f08608bfc337e7ebd7b848a1fb2ec0f1435..bce01327dddd39959b09dc0ad82661140c0fa79b 100644 (file)
@@ -269,7 +269,8 @@ static Int32 bootp_receive (Int32 sock, Uint8* ptr_data, Int32 num_bytes)
     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)