/[lwip]/lwip/src/netif/ppp/ppp.h
ViewVC logotype

Diff of /lwip/src/netif/ppp/ppp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by marcbou, Thu Jun 19 11:31:25 2003 UTC revision 1.4.2.1 by marcbou, Fri Jun 27 19:35:11 2003 UTC
# Line 313  struct ppp_settings { Line 313  struct ppp_settings {
313          int  maxconnect;         /* Maximum connect time (seconds) */          int  maxconnect;         /* Maximum connect time (seconds) */
314    
315          char user[MAXNAMELEN + 1];/* Username for PAP */          char user[MAXNAMELEN + 1];/* Username for PAP */
316          char passwd[MAXNAMELEN + 1];           /* Password for PAP */          char passwd[MAXSECRETLEN + 1];           /* Password for PAP, secret for CHAP */
317          char our_name[MAXNAMELEN + 1];         /* Our name for authentication purposes */          char our_name[MAXNAMELEN + 1];         /* Our name for authentication purposes */
318          char remote_name[MAXNAMELEN + 1];      /* Peer's name for authentication */          char remote_name[MAXNAMELEN + 1];      /* Peer's name for authentication */
319  };  };
# Line 340  extern struct protent *ppp_protocols[];/ Line 340  extern struct protent *ppp_protocols[];/
340  /* Initialize the PPP subsystem. */  /* Initialize the PPP subsystem. */
341  void pppInit(void);  void pppInit(void);
342    
343  void pppSetAuth(const char *user, const char *passwd);  enum pppAuthType {
344        PPPAUTHTYPE_NONE,
345        PPPAUTHTYPE_PAP,
346        PPPAUTHTYPE_CHAP
347    };
348    
349    void pppSetAuth(enum pppAuthType authType, const char *user, const char *passwd);
350    
351  /*  /*
352   * Open a new PPP connection using the given I/O device.   * Open a new PPP connection using the given I/O device.

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26