diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-04-29 02:04:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-04-29 02:04:26 +0000 |
commit | 478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f (patch) | |
tree | 4ee5bb16317d68971808b4758b796cfc53338395 /c/src/tests/samples/pppd/init.c | |
parent | 2003-04-18 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f.tar.bz2 |
2003-04-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Adding pppd:
* pppd/Makefile-user: New, copied over from libnetworking/pppd/example.
* pppd/README: New, copied over from libnetworking/pppd/example.
* pppd/init.c: New, copied over from libnetworking/pppd/example.
* pppd/netconfig.h: New, copied over from libnetworking/pppd/example.
* pppd/ppp.conf: New, copied over from libnetworking/pppd/example.
* pppd/pppdapp.c: New, copied over from libnetworking/pppd/example.
* pppd/system.h: New, copied over from libnetworking/pppd/example.
* pppd/pppd.options: New, copied over from libnetworking/pppd/example.
* pppd/Makefile.am: New, converted to automake from Makefile-user.
* pppd/.cvsignore: New.
Diffstat (limited to 'c/src/tests/samples/pppd/init.c')
-rw-r--r-- | c/src/tests/samples/pppd/init.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/c/src/tests/samples/pppd/init.c b/c/src/tests/samples/pppd/init.c new file mode 100644 index 0000000000..f35d195bf2 --- /dev/null +++ b/c/src/tests/samples/pppd/init.c @@ -0,0 +1,24 @@ + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <rtems/rtems_bsdnet.h> +#include <rtemspppd.h> + +#define CONFIGURE_INIT +#include "system.h" +#include "netconfig.h" + + +extern int pppdapp_initialize(void); + + +rtems_task Init(rtems_task_argument argument) +{ + /* initialize network */ + rtems_bsdnet_initialize_network(); + rtems_pppd_initialize(); + pppdapp_initialize(); + + rtems_task_delete(RTEMS_SELF); +} |