Changeset b9f308a in network-demos


Ignore:
Timestamp:
11/10/99 20:54:17 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 57a009d5b89e72f488ab655184e6a33bb0fe6b7f, netdemos-4-5-branch, network-demos-4-10-branch, network-demos-4-6-branch, network-demos-4-7-branch, network-demos-4-8-branch, network-demos-4-9-branch, rtems-4-5-branch
Children:
3d7557e
Parents:
2536fb0
Message:

Patch from Eric Norum <eric@…> to add the new fields to
the network configuration example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networkconfig.h

    r2536fb0 rb9f308a  
    3939#endif
    4040
     41#ifdef RTEMS_USE_LOOPBACK
     42/*
     43 * Loopback interface
     44 */
     45extern void rtems_bsdnet_loopattach();
     46static struct rtems_bsdnet_ifconfig loopback_config = {
     47        "lo0",                          /* name */
     48        rtems_bsdnet_loopattach,        /* attach function */
     49
     50        NULL,                           /* link to next interface */
     51
     52        "127.0.0.1",                    /* IP address */
     53        "255.0.0.0",                    /* IP net mask */
     54};
     55#endif
     56
    4157/*
    4258 * Default network interface
     
    4662        RTEMS_BSP_NETWORK_DRIVER_ATTACH,        /* attach function */
    4763
    48         NULL,                           /* link to next interface */
     64#ifdef RTEMS_USE_LOOPBACK
     65        &loopback_config,               /* link to next interface */
     66#else
     67        NULL,                           /* No more interfaces */
     68#endif
    4969
    5070#if (defined (RTEMS_USE_BOOTP))
     
    86106        "XXX.YYY.ZZZ.1",        /* Log host */
    87107        {"XXX.YYY.ZZZ.1" },     /* Name server(s) */
     108        {"XXX.YYY.ZZZ.1" },     /* NTP server(s) */
    88109
    89110        /*
     
    97118        "192.168.1.2",          /* Log host */
    98119        {"192.168.1.2" },       /* Name server(s) */
     120        {"192.168.1.2" },       /* NTP server(s) */
    99121#endif
    100122#endif /* !RTEMS_USE_BOOTP */
Note: See TracChangeset for help on using the changeset viewer.