Changeset 7d69fb3 in rtems-libbsd


Ignore:
Timestamp:
Jul 27, 2012, 1:11:01 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
04ca033
Parents:
97cc960
Message:

init01: Add configuration structure

Location:
testsuite/init01
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuite/init01/init.c

    r97cc960 r7d69fb3  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  $Id$
     2 *  Shared Network Test Initialization File
    53 */
    64
     
    3836
    3937  printf( "*** Test main returned and should not have ***\n" );
    40 
    4138  exit( 5 );
    4239}
  • testsuite/init01/test_main.c

    r97cc960 r7d69fb3  
    2222  exit( 0 );
    2323}
     24
     25/* for old configuration structure */
     26#include <rtems/rtems_bsdnet.h>
     27
     28/*
     29 * Network configuration
     30 */
     31struct rtems_bsdnet_config rtems_bsdnet_config = {
     32    NULL,                   /* Network interface */
     33    NULL,                   /* Use fixed network configuration */
     34    0,                      /* Default network task priority */
     35    0,                      /* Default mbuf capacity */
     36    0,                      /* Default mbuf cluster capacity */
     37    "testSystem",           /* Host name */
     38    "nowhere.com",          /* Domain name */
     39    "127.0.0.1",            /* Gateway */
     40    "127.0.0.1",            /* Log host */
     41    {"127.0.0.1" },         /* Name server(s) */
     42    {"127.0.0.1" },         /* NTP server(s) */
     43    0,
     44    0,
     45    0,
     46    0,
     47    0
     48};
     49
Note: See TracChangeset for help on using the changeset viewer.