Files
rtems/c/src/tests/samples/pppd/init.c
Ralf Corsepius 478bb1e63d 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.
2003-04-29 02:04:26 +00:00

25 lines
422 B
C

#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);
}