source: rtems/cpukit/pppd/rtemspppd.h @ aee474b

4.104.114.84.95
Last change on this file since aee474b was 2f1b930, checked in by Joel Sherrill <joel.sherrill@…>, on 08/16/01 at 20:42:09

2001-08-16 Mike Siers <mikes@…>

  • Update of PPPD to 2.3.11 from 2.3.5 and addition of an example application. Mike's notes on the modifications:
    • renamed error() function because of namespace problems
    • removed calls to the exit() funciton
    • removed extra files from the pppd source directory
    • defined pppd task constant values in rtemspppd.h
    • modifyied example code to get actual tick per second value
    • placed the pppd 2.3.11 man page file (pppd.8) into the pppd directory
  • pppd/cbcp.c, pppd/cbcp.h, pppd/main.c, pppd/ppp_tty.c, pppd/pppmain.c, pppd/rtems-ppp.c, pppd/rtems-ppp.c: Deleted.
  • pppd/pppd.8, pppd/rtemsmain.c, pppd/rtemspppd.c, pppd/rtemspppd.h, pppd/sys-rtems.c, pppd/utils.c, pppd/example/Makefile, pppd/example/README, pppd/example/init.c, pppd/example/netconfig.h, pppd/example/ppp.conf, pppd/example/pppdapp.c, pppd/example/system.h: New files.
  • modem/ppp_tty.c, net/if_ppp.h, pppd/Makefile.am, pppd/README, pppd/STATUS, pppd/auth.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.h, pppd/upap.c, pppd/upap.h: Modified.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1
2#ifndef RTEMSPPPD_H
3#define RTEMSPPPD_H
4
5/* check to see if pppd task values are set */
6#ifndef RTEMS_PPPD_TASK_PRIORITY
7#define RTEMS_PPPD_TASK_PRIORITY        120
8#endif
9#ifndef RTEMS_PPPD_TASK_STACK_SIZE
10#define RTEMS_PPPD_TASK_STACK_SIZE      (10*1024)
11#endif
12#ifndef RTEMS_PPPD_TASK_INITIAL_MODES
13#define RTEMS_PPPD_TASK_INITIAL_MODES   (RTEMS_PREEMPT | \
14                                         RTEMS_NO_TIMESLICE | \
15                                         RTEMS_NO_ASR | \
16                                         RTEMS_INTERRUPT_LEVEL(0))
17#endif
18
19/* define hook function identifiers */
20#define RTEMS_PPPD_LINKUP_HOOK      1
21#define RTEMS_PPPD_LINKDOWN_HOOK    2
22#define RTEMS_PPPD_IPUP_HOOK        3
23#define RTEMS_PPPD_IPDOWN_HOOK      4
24
25/* define hook function pointer prototype */
26typedef void (*rtems_pppd_hookfunction)(void);
27
28
29/* define pppd function prototyes */
30int rtems_pppd_initialize(void);
31int rtems_pppd_terminate(void);
32int rtems_pppd_reset_options(void);
33int rtems_pppd_set_hook(int id, rtems_pppd_hookfunction hookfp);
34int rtems_pppd_set_option(const char *pOption, const char *pValue);
35int rtems_pppd_connect(void);
36int rtems_pppd_disconnect(void);
37
38#endif
Note: See TracBrowser for help on using the repository browser.