mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
* Nice Update of PPPD support which eliminates the requiremetn that drivers be in the termios TASK_DRIVEN mode. Mike did significant testing and reports that it seems to be more stable and handle larger packets better. This patch replaces the termios tasks with more general pppd network driver tasks. The functions pppinput() and pppstart() get called from the interrupt service routine. * Makefile.am, configure.ac, net/Makefile.am, net/bpf.h, net/ethernet.h, net/if.c, net/if.h, net/if_arp.h, net/if_dl.h, net/if_ethersubr.c, net/if_llc.h, net/if_loop.c, net/if_ppp.h, net/if_pppvar.h, net/if_types.h, net/netisr.h, net/ppp-comp.h, net/ppp_defs.h, net/pppcompress.h, net/radix.c, net/radix.h, net/raw_cb.c, net/raw_cb.h, net/raw_usrreq.c, net/route.c, net/route.h, net/rtsock.c, pppd/Makefile.am, pppd/README, pppd/STATUS, pppd/auth.c, pppd/cbcp.c, pppd/ccp.c, pppd/ccp.h, pppd/chap.c, pppd/chap.h, pppd/chap_ms.c, pppd/chap_ms.h, pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/fsm.h, pppd/ipcp.c, pppd/ipcp.h, pppd/ipxcp.c, pppd/ipxcp.h, pppd/lcp.c, pppd/lcp.h, pppd/magic.c, pppd/magic.h, pppd/options.c, pppd/patchlevel.h, pppd/pathnames.h, pppd/pppd.8, pppd/pppd.h, pppd/rtemsmain.c, pppd/rtemspppd.c, pppd/rtemspppd.h, pppd/sys-rtems.c, pppd/upap.c, pppd/upap.h, pppd/utils.c, pppd/example/README, pppd/example/netconfig.h, wrapup/Makefile.am: Modified. * net/bsd-comp.c, net/if_ppp.c, net/ppp-deflate.c, net/ppp.h, net/ppp_tty.c, net/pppcompress.c, net/zlib.c, net/zlib.h: New file. * modem/, modem/.cvsignore, modem/Makefile.am, modem/ppp.c, modem/ppp.h, modem/ppp_tty.c, modem/pppcompress.c: Subdirectory removed.
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
|
|
#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
|