38 Commits

Author SHA1 Message Date
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
6bf758668b Add if_nametoindex() 2012-10-12 13:41:29 -05:00
Joel Sherrill
82e1c695b6 Userspace Makefile: Clean up yacc/lex handling to avoid conflicts 2012-10-11 17:28:30 -05:00
Jennifer Averett
05519817fb Added files to get netshell to link when using ping. 2012-10-11 09:03:25 -05:00
Jennifer Averett
45a81cdc5e Added rtems specific version of _pthread_main_np()
This required adding rtems_id rtems_init_task_id to identify the
main task.
2012-10-05 09:34:09 -05:00
Jennifer Averett
c9be340ecf Added an rtems specific getprogname() to userspace. 2012-09-13 14:54:38 -05:00
Jennifer Averett
4ffe3f450e Added h_errno methods to userspace. 2012-09-13 14:52:42 -05:00
Jennifer Averett
ef97f34a7a Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-09-13 12:07:37 -05:00
Jennifer Averett
bf4a3380c6 Added resolv/mtctxres.c to userspace for ___mtctxres(). 2012-09-13 12:07:02 -05:00
Jennifer Averett
afcd88e1fe Added rtems_bsdnet_log_host_address and its initialization to userspace. 2012-09-13 11:56:22 -05:00
Joel Sherrill
40b4210bf0 freebsd-userspace/Makefile: Compile generated nsparser.c 2012-09-13 09:28:23 -05:00
Joel Sherrill
210671ae7d Merge branch 'master' of ssh://git.rtems.org/data/git/rtems-libbsd 2012-09-12 17:11:22 -05:00
Joel Sherrill
c52d92245a nsdispatch.c: New file added along with required dependencies
This file uses dynamic loading and is using some magic for
statically linked modules included in it. These modules may
or may not show up magically in an RTEMS executable. This will
eventually have to be investigated and resolved.
2012-09-12 17:11:16 -05:00
Jennifer Averett
5a95703a80 Added res_findzonecut2 to user space. 2012-09-12 14:20:15 -05:00
Jennifer Averett
8c92f71d9a Added __res_state to user space. 2012-09-12 14:05:27 -05:00
Jennifer Averett
e4e17463bb Added userspace db files. 2012-09-12 10:59:41 -05:00
Joel Sherrill
0d928a036e nameser/ns_samedomain.c: New file 2012-09-11 19:13:52 -05:00
Jennifer Averett
060d28d8b2 Added fgetln() 2012-09-11 11:56:44 -05:00
Joel Sherrill
0f2ea18bd0 lib/libc/net/name6.c: New file
netshell01 needed the following symbols:
  - getipnodebyaddr
  - getipnodebyaddr
  - getipnodebyname
2012-09-10 19:03:41 -05:00
Joel Sherrill
e6fe77ef56 freebsd-userspace/Makefile: Resolve conflict so ifconfig and netstat are both here 2012-09-07 13:19:21 -05:00
Jennifer Averett
ebbe3cc71f Added the ifconfig command. 2012-09-07 13:16:22 -05:00
Joel Sherrill
e1fc84b98d dhclient: New files 2012-09-06 13:08:06 -05:00
Jennifer Averett
bd2941b4d4 route: Added files for the route command. 2012-09-06 10:19:13 -05:00
Joel Sherrill
324dde6faa Makefile: Add err.c 2012-09-05 13:24:06 -05:00
Joel Sherrill
c77d779831 userspace Makefile: Do not build old style NIC configuration 2012-09-01 13:36:46 -05:00
Joel Sherrill
c1e56a553c res_send.c: Now compiles
This required adding ISC .h files and adding some defines to
port_before.h.
2012-09-01 09:46:13 -05:00
Joel Sherrill
236e427af6 res_mkupdate.c: Add isc/*.h and define _LIBC
This patch enabled a number of files to compile.
2012-09-01 09:36:41 -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
Joel Sherrill
ee7721244a getaddrinfo.c: New file 2012-08-24 15:37:39 -05:00
Joel Sherrill
a4713c61c7 Add syslog functionality from old TCP/IP stack. 2012-07-28 06:39:41 -05:00
Joel Sherrill
b27d8759d2 Makefile: Correct so not rebuilding all every time 2012-07-27 08:05:15 -05:00
Joel Sherrill
bd6dd6e233 net-setup: Add routing and old stack's configuration
This allows the old stack's configuration structures to be used
unchanged even though this code currently does not support all
of the options. It likely will never support all of the options
as some should eventually come through configuration files as
they would in a real FreeBSD system. Other configuration
parameters are likely configurable via "hints".
2012-07-27 07:45:06 -05:00
Joel Sherrill
1543249d3e port_before.h: Add _ALIGNBYTES and enable getservent.c 2012-07-11 17:54:57 -05:00
Joel Sherrill
939b12b52e Makefile: Enable most files to build 2012-07-11 17:38:09 -05:00
Joel Sherrill
028aaafa79 freebsd-userspace: All files in old libnetworking/libc now present
But they don't all compile. Multiple issues left to address.
2012-07-11 16:01:37 -05:00
Joel Sherrill
079c3f27ea userspace: Add install support 2012-07-11 14:31:26 -05:00
Joel Sherrill
1b13f6981a FreeBSD user space support - First additions
This requires a full checkout of the FreeBSD 8.2 source code.
The checkout we have been using is missing at least the libc,
include, and sys directories.  The script to copy files in is
crude.

This eventually needs to separate the manually written .h files
out and add the RTEMS specific network initialization support
with functionality to program the IP addresses and gateways as
the old stack did.
2012-07-11 13:23:45 -05:00