uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lcp.h File Reference

Go to the source code of this file.

Classes

struct  lcp_options
 

Macros

#define CI_MRU   1 /* Maximum Receive Unit */
 
#define CI_ASYNCMAP   2 /* Async Control Character Map */
 
#define CI_AUTHTYPE   3 /* Authentication Type */
 
#define CI_QUALITY   4 /* Quality Protocol */
 
#define CI_MAGICNUMBER   5 /* Magic Number */
 
#define CI_PCOMPRESSION   7 /* Protocol Field Compression */
 
#define CI_ACCOMPRESSION   8 /* Address/Control Field Compression */
 
#define CI_CALLBACK   13 /* callback */
 
#define CI_MRRU   17 /* max reconstructed receive unit; multilink */
 
#define CI_SSNHF   18 /* short sequence numbers for multilink */
 
#define CI_EPDISC   19 /* endpoint discriminator */
 
#define PROTREJ   8 /* Protocol Reject */
 
#define ECHOREQ   9 /* Echo Request */
 
#define ECHOREP   10 /* Echo Reply */
 
#define DISCREQ   11 /* Discard Request */
 
#define CBCP_OPT   6 /* Use callback control protocol */
 
#define DEFLOOPBACKFAIL   10
 

Typedefs

typedef struct lcp_options lcp_options
 

Enumerations

enum  LinkPhase {
  PHASE_DEAD = 0, PHASE_INITIALIZE, PHASE_ESTABLISH, PHASE_AUTHENTICATE,
  PHASE_CALLBACK, PHASE_NETWORK, PHASE_TERMINATE
}
 

Functions

void lcp_init (int)
 
void lcp_open (int)
 
void lcp_close (int, char *)
 
void lcp_lowerup (int)
 
void lcp_lowerdown (int)
 
void lcp_sprotrej (int, u_char *, int)
 

Variables

LinkPhase lcp_phase [NUM_PPP]
 
lcp_options lcp_wantoptions []
 
lcp_options lcp_gotoptions []
 
lcp_options lcp_allowoptions []
 
lcp_options lcp_hisoptions []
 
ext_accm xmit_accm []
 
struct protent lcp_protent
 

Macro Definition Documentation

#define CBCP_OPT   6 /* Use callback control protocol */

Definition at line 78 of file lcp.h.

#define CI_ACCOMPRESSION   8 /* Address/Control Field Compression */

Definition at line 65 of file lcp.h.

#define CI_ASYNCMAP   2 /* Async Control Character Map */

Definition at line 60 of file lcp.h.

#define CI_AUTHTYPE   3 /* Authentication Type */

Definition at line 61 of file lcp.h.

#define CI_CALLBACK   13 /* callback */

Definition at line 66 of file lcp.h.

#define CI_EPDISC   19 /* endpoint discriminator */

Definition at line 69 of file lcp.h.

#define CI_MAGICNUMBER   5 /* Magic Number */

Definition at line 63 of file lcp.h.

#define CI_MRRU   17 /* max reconstructed receive unit; multilink */

Definition at line 67 of file lcp.h.

#define CI_MRU   1 /* Maximum Receive Unit */

Definition at line 59 of file lcp.h.

#define CI_PCOMPRESSION   7 /* Protocol Field Compression */

Definition at line 64 of file lcp.h.

#define CI_QUALITY   4 /* Quality Protocol */

Definition at line 62 of file lcp.h.

#define CI_SSNHF   18 /* short sequence numbers for multilink */

Definition at line 68 of file lcp.h.

#define DEFLOOPBACKFAIL   10

Definition at line 149 of file lcp.h.

#define DISCREQ   11 /* Discard Request */

Definition at line 77 of file lcp.h.

#define ECHOREP   10 /* Echo Reply */

Definition at line 76 of file lcp.h.

#define ECHOREQ   9 /* Echo Request */

Definition at line 75 of file lcp.h.

#define PROTREJ   8 /* Protocol Reject */

Definition at line 74 of file lcp.h.

Typedef Documentation

typedef struct lcp_options lcp_options

Enumeration Type Documentation

enum LinkPhase
Enumerator
PHASE_DEAD 
PHASE_INITIALIZE 
PHASE_ESTABLISH 
PHASE_AUTHENTICATE 
PHASE_CALLBACK 
PHASE_NETWORK 
PHASE_TERMINATE 

Definition at line 118 of file lcp.h.

Function Documentation

void lcp_close ( int  ,
char *   
)
void lcp_init ( int  )
void lcp_lowerdown ( int  )
void lcp_lowerup ( int  )
void lcp_open ( int  )
void lcp_sprotrej ( int  ,
u_char *  ,
int   
)

Variable Documentation

lcp_options lcp_allowoptions[]
lcp_options lcp_gotoptions[]
lcp_options lcp_hisoptions[]
LinkPhase lcp_phase[NUM_PPP]
struct protent lcp_protent
lcp_options lcp_wantoptions[]
ext_accm xmit_accm[]