forked from Imagelibrary/rtems
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.
25 lines
422 B
C
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);
|
|
}
|