Jennifer Averett
09087dc3e8
ping: Remove unnecessary ifdef
2012-10-26 08:58:31 -05:00
Joel Sherrill
af0a8ead1a
netstat/kvm: Disable debug prints
2012-10-25 09:03:28 -05:00
Joel Sherrill
e0b40b0aa2
netstat/netstat.h: Add macro so rt_tables is in private namespace
...
Otherwise this conflicts with the rt_tables in the kernel and
kvm can't work.
2012-10-25 09:02:38 -05:00
Joel Sherrill
5f600ddbed
netstat: Enable use of kvm again
...
The code committed has some debug information enabled. It ends with
an odd reference to address 0x1.
2012-10-24 15:40:19 -05:00
Jennifer Averett
240093f3ce
ping: corrected argument get to work with rtems.
2012-10-24 15:02:37 -05:00
Joel Sherrill
6f23b75ba2
netstat: Use rtems_clock_get_uptime() instead of BSD specific method
2012-10-23 16:49:17 -05:00
Joel Sherrill
bea701c3a0
netstat: Add macros to assist use of getopt_r()
2012-10-23 16:48:54 -05:00
Joel Sherrill
df900d3a86
Commands: Build with IPV6 enabled
2012-10-23 14:21:44 -05:00
Jennifer Averett
d422d0df64
Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd
2012-10-23 14:16:33 -05:00
Jennifer Averett
2df6b3148a
netstat: Added exit funtionality.
2012-10-23 14:13:08 -05:00
Joel Sherrill
e26cd8dd2e
route: Add macros to assist use of getopt_r()
2012-10-23 13:36:45 -05:00
Joel Sherrill
25f7f0f9b5
ifconfig.c: Correct for getopt_r()
2012-10-23 11:13:58 -05:00
Joel Sherrill
346810af65
netstat/if.c: Use POSIX not BSD signals
2012-10-23 11:13:57 -05:00
Joel Sherrill
0fa7dabe89
route command: Clean up kernal symbol accesses
2012-10-23 11:13:57 -05:00
Joel Sherrill
44ee042822
Add kvm header file - stubbed for RTEMS
...
This is only used to read dumps with a symbol table. We can use
sysctlbyname().
2012-10-23 11:13:57 -05:00
Joel Sherrill
b6ac989f8a
Add netstat command
...
This adds the netstat command. All but one file is currently enabled.
That file does not currently build.
Also added libmemstat and libutil. libmemstat had a lot of code related
to kvm and kernel memory access disabled. This may or may not be an
issue.
2012-10-17 11:13:36 -05:00
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