Changeset 23cd284 in rtems-libbsd


Ignore:
Timestamp:
Nov 10, 2017, 10:48:51 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
896f068
Parents:
eeeda4b
git-author:
Sebastian Huber <sebastian.huber@…> (11/10/17 10:48:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/10/17 10:50:30)
Message:

Add rtems_bsd_ifconfig_lo0()

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • libbsd.py

    reeeda4b r23cd284  
    7070            'rtems/rtems-bsd-get-task-priority.c',
    7171            'rtems/rtems-bsd-get-task-stack-size.c',
     72            'rtems/rtems-bsd-ifconfig-lo0.c',
    7273            'rtems/rtems-bsd-rc-conf-net.c',
    7374            'rtems/rtems-bsd-rc-conf-pf.c',
  • libbsd_waf.py

    reeeda4b r23cd284  
    21942194              'rtemsbsd/rtems/rtems-bsd-get-task-priority.c',
    21952195              'rtemsbsd/rtems/rtems-bsd-get-task-stack-size.c',
     2196              'rtemsbsd/rtems/rtems-bsd-ifconfig-lo0.c',
    21962197              'rtemsbsd/rtems/rtems-bsd-rc-conf-net.c',
    21972198              'rtemsbsd/rtems/rtems-bsd-rc-conf-pf.c',
  • rtemsbsd/include/rtems/bsd/bsd.h

    reeeda4b r23cd284  
    9393
    9494/**
     95 * @brief Configures the lo0 (loopback) interface.
     96 *
     97 * @return Returns an exit code, see also <sysexits.h>.
     98 */
     99int rtems_bsd_ifconfig_lo0(void);
     100
     101/**
    95102 * @brief Returns the initial priority for a task specified by its name.
    96103 *
  • testsuite/include/rtems/bsd/test/default-network-init.h

    reeeda4b r23cd284  
    7272}
    7373
    74 static void
    75 default_network_ifconfig_lo0(void)
    76 {
    77         int exit_code;
    78         char *lo0[] = {
    79                 "ifconfig",
    80                 "lo0",
    81                 "inet",
    82                 "127.0.0.1",
    83                 "netmask",
    84                 "255.255.255.0",
    85                 NULL
    86         };
    87         char *lo0_inet6[] = {
    88                 "ifconfig",
    89                 "lo0",
    90                 "inet6",
    91                 "::1",
    92                 "prefixlen",
    93                 "128",
    94                 "alias",
    95                 NULL
    96         };
    97 
    98         exit_code = rtems_bsd_command_ifconfig(RTEMS_BSD_ARGC(lo0), lo0);
    99         assert(exit_code == EX_OK);
    100 
    101         exit_code = rtems_bsd_command_ifconfig(RTEMS_BSD_ARGC(lo0_inet6), lo0_inet6);
    102         assert(exit_code == EX_OK);
    103 }
    104 
    10574#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    10675static void
     
    284253        assert(sc == RTEMS_SUCCESSFUL);
    285254
    286         default_network_ifconfig_lo0();
     255        rtems_bsd_ifconfig_lo0();
    287256#ifndef DEFAULT_NETWORK_NO_INTERFACE_0
    288257        default_network_ifconfig_hwif0(ifname);
Note: See TracChangeset for help on using the changeset viewer.