OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [net/] [mppe.h] - Rev 1777

Go to most recent revision | Compare with Previous | Blame | View Log

#ifndef MPPE_H
#define MPPE_H
 
typedef struct mppe_state {
    int    us_unit;	/* Interface unit number */
    u_char us_id;		/* Current id */
    u_char us_allowed;
    int    us_type;
    char   *us_number;    /* Telefone Number */
} mppe_state;
 
 
extern struct protent mppe_protent;
 
#define MPPE_CONFOPTION 18
#define MPPC		0x01
#define MPPE_40BIT	0x20
#define MPPE_128BIT	0x40
 
#define PPP_MPPE	0x00FD
#define PPP_MPPC	PPP_MPPE
 
#define MPPE_BIT_A	0x80
#define MPPE_BIT_B	0x40
#define MPPE_BIT_C	0x20
#define MPPE_BIT_D	0x10
#define MPPE_BIT_FLUSHED MPPE_BIT_A
#define MPPE_BIT_ENCRYPTED MPPE_BIT_D
#define MPPE_CCOUNT	0x0FFF
 
#define MPPC_BIT_RESET	MPPE_BIT_A
#define MPPC_BIT_FLUSH	MPPE_BIT_B
#define MPPC_BIT_COMP	MPPC_BIT_C
 
#define MPPE_40_SALT0	0xD1
#define MPPE_40_SALT1	0x26
#define MPPE_40_SALT2	0x9E
 
#define MPPE_MINLEN 4
 
#define MPPE_REQ    1
#define MPPE_RESP   2
#define MPPE_ACK    3
 
#endif
/*==FILEVERSION 970728==*/
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.