[rtems-libbsd commit] init01: Add configuration structure
Joel Sherrill
joel at rtems.org
Fri Aug 3 13:36:47 UTC 2012
Module: rtems-libbsd
Branch: master
Commit: 7d69fb33a6bbc9f666d5d76719992ea83704919d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=7d69fb33a6bbc9f666d5d76719992ea83704919d
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Jul 27 08:11:01 2012 -0500
init01: Add configuration structure
---
testsuite/init01/init.c | 5 +----
testsuite/init01/test_main.c | 26 ++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/testsuite/init01/init.c b/testsuite/init01/init.c
index 879a222..eba9e74 100644
--- a/testsuite/init01/init.c
+++ b/testsuite/init01/init.c
@@ -1,7 +1,5 @@
/*
- * Simple test program -- simplified version of sample test hello.
- *
- * $Id$
+ * Shared Network Test Initialization File
*/
#include <bsp.h>
@@ -37,7 +35,6 @@ rtems_task Init(
/* should not return */
printf( "*** Test main returned and should not have ***\n" );
-
exit( 5 );
}
diff --git a/testsuite/init01/test_main.c b/testsuite/init01/test_main.c
index 3e7c43e..649a578 100644
--- a/testsuite/init01/test_main.c
+++ b/testsuite/init01/test_main.c
@@ -21,3 +21,29 @@ void test_main(void)
printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
exit( 0 );
}
+
+/* for old configuration structure */
+#include <rtems/rtems_bsdnet.h>
+
+/*
+ * Network configuration
+ */
+struct rtems_bsdnet_config rtems_bsdnet_config = {
+ NULL, /* Network interface */
+ NULL, /* Use fixed network configuration */
+ 0, /* Default network task priority */
+ 0, /* Default mbuf capacity */
+ 0, /* Default mbuf cluster capacity */
+ "testSystem", /* Host name */
+ "nowhere.com", /* Domain name */
+ "127.0.0.1", /* Gateway */
+ "127.0.0.1", /* Log host */
+ {"127.0.0.1" }, /* Name server(s) */
+ {"127.0.0.1" }, /* NTP server(s) */
+ 0,
+ 0,
+ 0,
+ 0,
+ 0
+};
+
More information about the vc
mailing list