source: rtems-libbsd/testsuite/netshell01/shellconfig.c @ 44ffbd5

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 44ffbd5 was 44ffbd5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/12 at 00:03:46

Add ifconfig command as RTEMS Shell command

This is enough to be able to invoke the ifconfig command but it
calls exit() which is inappropriate.

The "struct option" in the ifconfig code conflicts with a structure
of the same name in newlib's and glibc's getopt.h.

  • Property mode set to 100644
File size: 344 bytes
Line 
1/*
2 *  Shell Configuration
3 */
4
5#include <rtems/shell.h>
6
7#include <rtems/netcmds-config.h>
8
9#define CONFIGURE_SHELL_COMMANDS_INIT
10#define CONFIGURE_SHELL_COMMANDS_ALL
11
12#define CONFIGURE_SHELL_USER_COMMANDS \
13    &rtems_shell_PING_Command, \
14    &rtems_shell_ROUTE_Command, \
15    &rtems_shell_IFCONFIG_Command
16
17#include <rtems/shellconfig.h>
18
19
Note: See TracBrowser for help on using the repository browser.