home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / PPPPAP.H < prev    next >
C/C++ Source or Header  |  1991-08-06  |  802b  |  26 lines

  1. #ifndef _PPPPAP_H
  2. #define _PPPPAP_H
  3.                     /* PAP config packet codes */
  4. /* PAP control block */
  5. struct pap_s {
  6.     char *username;            /* Username for REQ */
  7.     char *password;            /* Password for REQ */
  8.     char *message;            /* message from last ACK/NAK */
  9.     struct proc *pp;        /* user/password process */
  10. };
  11.  
  12. #define PAP_REQ_TRY    100        /* REQ attempts */
  13. #define PAP_FAIL_MAX    5        /* # attempts from remote */
  14. #define PAP_TIMEOUT    3        /* Seconds to wait for response */
  15.  
  16.  
  17. int pap_local __ARGS((struct ppp_s *ppp_p));
  18. int pap_remote __ARGS((struct ppp_s *ppp_p));
  19. void pap_down __ARGS((struct fsm_s *fsm_p));
  20. void pap_proc __ARGS((struct fsm_s *fsm_p, struct mbuf *bp));
  21.  
  22. int doppp_pap __ARGS((int argc, char *argv[], void *p));
  23. void pap_init    __ARGS((struct ppp_s *ppp_p));
  24.  
  25. #endif /* _PPPPAP_H */
  26.