summaryrefslogtreecommitdiffstats
path: root/c/src/libnetworking/pppd/example/init.c
blob: f35d195bf27d28b0078d6d06383d360091d1f042 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}