summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/pppd/netconfig.h
blob: f7f5682d4ff3a36456e1a0fc2c3a77e8be30cc92 (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
25
26
27
28
29
30
31
32
33
34
35
#ifndef NETCONFIG_H_
#define NETCONFIG_H_

#include <bsp.h>

/* external function prototypes */
extern int rtems_ppp_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching);

/* Default network interface */
static struct rtems_bsdnet_ifconfig netdriver_config = {
  "ppp0",                    /* name */
  rtems_ppp_driver_attach,   /* attach function */
  NULL,                      /* No more interfaces */
  NULL,                      /* IP address */
  NULL,                      /* IP net mask */
  NULL,                      /* Driver supplies hardware address */
  0                          /* Use default driver parameters */
};

/* Network configuration */
struct rtems_bsdnet_config rtems_bsdnet_config = {
  &netdriver_config,
  NULL,
  30,                 /* Default network task priority */
  (256UL *1024UL),    /* Default mbuf capacity */
  (512UL *1024UL),    /* Default mbuf cluster capacity */
  0,                  /* Host name */
  0,                  /* Domain name */
  0,                  /* Gateway */
  0,                  /* Log host */
  { 0 },              /* Name server(s) */
  { 0 },              /* NTP server(s) */
};

#endif