This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Fix DNS server address printing
- From: Mark Salter <msalter at redhat dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Thu, 29 Aug 2002 15:30:57 -0400
- Subject: Fix DNS server address printing
Index: redboot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.75
diff -u -p -5 -r1.75 ChangeLog
--- redboot/current/ChangeLog 27 Aug 2002 11:06:48 -0000 1.75
+++ redboot/current/ChangeLog 29 Aug 2002 19:29:12 -0000
@@ -1,5 +1,9 @@
+2002-08-29 Mark Salter <msalter@redhat.com>
+
+ * src/net/net_io.c (net_init): Initialize dns before showing addresses.
+
2002-08-26 Thomas Koeller <thomas@koeller.dyndns.org>
* src/flash.c: Do not warn about overwriting image data if
-n option is used with 'fis create'. For 'fis load',
perform load size check based on actual data length, not
Index: redboot/current/src/net/net_io.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/net_io.c,v
retrieving revision 1.29
diff -u -p -5 -r1.29 net_io.c
--- redboot/current/src/net/net_io.c 27 Aug 2002 01:31:49 -0000 1.29
+++ redboot/current/src/net/net_io.c 29 Aug 2002 19:29:12 -0000
@@ -689,17 +689,17 @@ net_init(void)
__local_enet_addr[1],
__local_enet_addr[2],
__local_enet_addr[3],
__local_enet_addr[4],
__local_enet_addr[5]);
- show_addrs();
- net_io_init();
- }
#ifdef CYGPKG_REDBOOT_NETWORKING_DNS
- redboot_dns_res_init();
+ redboot_dns_res_init();
#endif
+ show_addrs();
+ net_io_init();
+ }
}
static char usage[] = "[-l <local_ip_address>] [-h <server_address>]";
// Exported CLI function