This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot - fix default values in fconfig
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 09 Sep 2003 08:40:57 -0600
- Subject: RedBoot - fix default values in fconfig
- Organization: MLB Associates
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/ChangeLog
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.11
diff -u -5 -p -r1.11 ChangeLog
--- redboot/current/ChangeLog 19 Aug 2003 18:26:58 -0000 1.11
+++ redboot/current/ChangeLog 9 Sep 2003 14:39:26 -0000
@@ -1,5 +1,10 @@
+2003-09-09 Gary Thomas <gary@mlbassoc.com>
+
+ * src/flash.c (flash_config_insert_value): Default values were
+ wrong for IP & ESA types.
+
2003-08-19 Gary Thomas <gary@mlbassoc.com>
* src/net/udp.c (__udp_recvfrom): Rework loop so delay only happens
if no packet is immediately available - improves network throughput.
Index: redboot/current/src/flash.c
===================================================================
RCS file: /home/gthomas/my_cvs/develop/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.7
diff -u -5 -p -r1.7 flash.c
--- redboot/current/src/flash.c 19 Aug 2003 18:26:58 -0000 1.7
+++ redboot/current/src/flash.c 9 Sep 2003 14:35:38 -0000
@@ -1986,14 +1986,14 @@ flash_config_insert_value(unsigned char
case CONFIG_INT:
memcpy(dp, (void *)&opt->dflt, sizeof(unsigned long));
break;
#ifdef CYGPKG_REDBOOT_NETWORKING
case CONFIG_IP:
- memcpy(dp, (void *)&opt->dflt, sizeof(in_addr_t));
+ memcpy(dp, (void *)opt->dflt, sizeof(in_addr_t));
break;
case CONFIG_ESA:
- memcpy(dp, (void *)&opt->dflt, sizeof(enet_addr_t));
+ memcpy(dp, (void *)opt->dflt, sizeof(enet_addr_t));
break;
#if defined(CYGHWR_NET_DRIVERS) && (CYGHWR_NET_DRIVERS > 1)
case CONFIG_NETPORT:
// validate dflt and if not acceptable use first port
{