diff packages/redboot/current/src/net/net_io.c @ 1223:dbcfe4e0dbd2

New platform - TAMS MOAB - and generic changes to support it
author gthomas
date Fri, 19 Sep 2003 17:11:18 +0000
parents f886ab6517f0
children c07ec2765e3e
line wrap: on
line diff
--- a/packages/redboot/current/src/net/net_io.c
+++ b/packages/redboot/current/src/net/net_io.c
@@ -119,7 +119,7 @@ RedBoot_config_option("Gateway IP addres
 #endif
 RedBoot_config_option("Default server IP address",
                       bootp_server_ip,
-                      "bootp", false,
+                      ALWAYS_ENABLED, true,
                       CONFIG_IP,
                       0
     );
@@ -685,8 +685,6 @@ net_init(void)
         flash_get_IP("bootp_my_ip_mask", &__local_ip_mask);
         flash_get_IP("bootp_my_gateway_ip", &__local_ip_gate);
 #endif
-        flash_get_config("bootp_server_ip", &my_bootp_info.bp_siaddr,
-                         CONFIG_IP);
     }
 #endif
 # ifdef CYGDBG_IO_ETH_DRIVERS_DEBUG
@@ -777,6 +775,9 @@ net_init(void)
                     __local_enet_addr[4],
                     __local_enet_addr[5]);
 
+#ifdef CYGSEM_REDBOOT_FLASH_CONFIG
+        flash_get_IP("bootp_server_ip", &my_bootp_info.bp_siaddr);
+#endif
 #ifdef CYGPKG_REDBOOT_NETWORKING_DNS
 	redboot_dns_res_init();
 #endif