diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-04-29 02:04:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-04-29 02:04:26 +0000 |
commit | 478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f (patch) | |
tree | 4ee5bb16317d68971808b4758b796cfc53338395 /c/src/tests/samples/pppd/netconfig.h | |
parent | 2003-04-18 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-478bb1e63d1ddecd7579a0628f3f54cc4f5afa7f.tar.bz2 |
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.
Diffstat (limited to 'c/src/tests/samples/pppd/netconfig.h')
-rw-r--r-- | c/src/tests/samples/pppd/netconfig.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/c/src/tests/samples/pppd/netconfig.h b/c/src/tests/samples/pppd/netconfig.h new file mode 100644 index 0000000000..3428288cd2 --- /dev/null +++ b/c/src/tests/samples/pppd/netconfig.h @@ -0,0 +1,36 @@ + +#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 */ + (256*1024), /* Default mbuf capacity */ + (512*1024), /* Default mbuf cluster capacity */ + 0, /* Host name */ + 0, /* Domain name */ + 0, /* Gateway */ + 0, /* Log host */ + { 0 }, /* Name server(s) */ + { 0 }, /* NTP server(s) */ +}; + +#endif |