14 Commits

Author SHA1 Message Date
Jennifer Averett
99ae4eb50f Added rtems exit code to ping, route, and ifconfig commands.
The rtems shell commands should not exit but allow multiple
command attempts and some of the commands share code that
will exit.  For this reason a common exit routine was
provided and code added to err.h to address this.

allow access to it.
2012-10-16 13:38:09 -05:00
Joel Sherrill
81d9b34598 Resolve more conflicts 2012-10-12 13:41:01 -05:00
Joel Sherrill
44ffbd53c6 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.
2012-10-11 19:03:46 -05:00
Jennifer Averett
3ac9bb177e route.c and ifconfig.c: Added rtems style mains.
Fixed route.c to match freebsd version with only rtems additions.
2012-10-05 13:41:20 -05:00
Jennifer Averett
ebbe3cc71f Added the ifconfig command. 2012-09-07 13:16:22 -05:00
Joel Sherrill
f1710b69d4 netstat: New command - Almost completely compiles
Currently disable in Makefile until all builds. Adding it so
others can assist in debugging issues.
2012-09-07 12:50:18 -05:00
Joel Sherrill
e1fc84b98d dhclient: New files 2012-09-06 13:08:06 -05:00
Joel Sherrill
9dd59215ce Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-09-06 10:36:47 -05:00
Joel Sherrill
7b1b5b8279 Revert patches moving include of port_local.h to top of file
This was covering up rtems-bsd-config.h.in undefining __P. These
files can remain closer to the FreeBSD originals.
2012-09-06 10:35:55 -05:00
Jennifer Averett
bd2941b4d4 route: Added files for the route command. 2012-09-06 10:19:13 -05:00
Joel Sherrill
dafaba3b0b ping6.c: Add include of port_before.h 2012-09-05 13:15:58 -05:00
Joel Sherrill
3604a2578f ping.c: Add include of port_before.h and rtems shell glue 2012-09-05 13:15:40 -05:00
Joel Sherrill
234dfb80b5 ping/ping6: Use getopt_r and make main unique for RTEMS 2012-08-31 19:33:20 -05:00
Joel Sherrill
1f877f9d52 commands ping/ping6: Add initial ports of FreeBSD ping and pin6 ports
These compile but need to have an RTEMS specific main and use the
reentrant getopt.
2012-08-31 19:22:33 -05:00