forked from Imagelibrary/rtems
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.
This commit is contained in:
24
testsuites/samples/pppd/init.c
Normal file
24
testsuites/samples/pppd/init.c
Normal file
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user