9 Commits

Author SHA1 Message Date
Sebastian Huber
d1bfa784b7 Use rtems_task_exit() 2022-06-01 10:36:17 +02:00
Chris Johns
43c65f52ee rc_conf: Do not use a local variable for the rc_conf context.
If a network error occurs or there is no waiter on rc_conf
processing the worker thread is left holding a local stack
struct ater the call has returned. Allocate on the heap.
2017-04-26 17:43:30 +10:00
Christian Mauderer
61e2e1bf91 rc.conf: Use more stack for the rc worker.
Most of the tests run with a default stack size of 32k. If the rc worker
runs with less, it uses an untested configuration.
2016-08-08 16:10:05 +02:00
Chris Johns
573b198243 Add DHCP support to rc.conf. 2016-06-30 09:19:52 +10:00
Chris Johns
c2ec5f188b Print the service when starting. 2016-06-28 13:31:11 +10:00
Chris Johns
55c564a028 Refactor rc.conf processing to be services based. 2016-06-27 13:32:24 +10:00
Chris Johns
d8e6b4c170 rc.conf: Add the net directives by default. 2016-05-18 19:03:39 +10:00
Chris Johns
f9fa038c94 Fix memory leak in rc.conf processing. 2016-05-18 15:21:09 +10:00
Chris Johns
f5c6651da8 Add support for rc.conf(5) initialisation.
Provide user support for rc.conf(5) so a user can create a suitable
/etc/rc.conf file to initialise libbsd.

This patch by default adds basic networking support:

 cloned_interfaces
 ifconfig_'interface'
 defaultrouter
 hostname

Refer to FreeBSD documentation for examples.

Users can make a single call to have /etc/rc.conf processed, or pass a
file name to a specific configuration file or a text string with line
feeds can be passed to the scripting version of the interface.

The rc.conf support is implemented in terms of directive handlers that
are called based on a regular expression. The design allows new handlers
to be added as needed.

Line concatenation is still to be implemented.
2016-05-18 13:49:17 +10:00