Changeset 04a64b1 in rtems-libbsd


Ignore:
Timestamp:
Oct 8, 2014, 9:48:02 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 68e79b6d187fe09b0a6f3f1d22c69b4121a3f76e, freebsd-9.3, 33bfaee89aa71d2252eb48d6b9a9ec17183faced
Children:
70fa95a
Parents:
263c947
git-author:
Sebastian Huber <sebastian.huber@…> (10/08/14 09:48:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/08/14 12:59:54)
Message:

testsuite: Add DEFAULT_NETWORK_NO_INTERFACE_0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/include/rtems/bsd/test/default-network-init.h

    r263c947 r04a64b1  
    100100}
    101101
     102#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
    102103static void
    103104default_network_ifconfig_hwif0(char *ifname)
     
    151152#endif
    152153}
     154#endif
    153155
    154156#ifdef DEFAULT_NETWORK_DHCPCD_ENABLE
     
    221223{
    222224        rtems_status_code sc;
     225#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
    223226#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
    224227        char ifnamebuf[IF_NAMESIZE];
    225228#endif
    226229        char *ifname;
     230#endif
    227231
    228232        puts("*** " TEST_NAME " TEST ***");
     
    248252        rtems_bsd_initialize();
    249253
     254#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
    250255#ifdef DEFAULT_NETWORK_NO_STATIC_IFCONFIG
    251256        ifname = if_indextoname(1, &ifnamebuf[0]);
     
    254259        ifname = NET_CFG_INTERFACE_0;
    255260#endif
     261#endif
    256262
    257263        /* Let the callout timer allocate its resources */
     
    260266
    261267        default_network_ifconfig_lo0();
     268#ifdef DEFAULT_NETWORK_NO_INTERFACE_0
    262269        default_network_ifconfig_hwif0(ifname);
    263270        default_network_route_hwif0(ifname);
     271#endif
    264272        default_network_dhcpcd();
    265273
Note: See TracChangeset for help on using the changeset viewer.