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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [net/] [mppe.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef MPPE_H
2
#define MPPE_H
3
 
4
typedef struct mppe_state {
5
    int    us_unit;     /* Interface unit number */
6
    u_char us_id;               /* Current id */
7
    u_char us_allowed;
8
    int    us_type;
9
    char   *us_number;    /* Telefone Number */
10
} mppe_state;
11
 
12
 
13
extern struct protent mppe_protent;
14
 
15
#define MPPE_CONFOPTION 18
16
#define MPPC            0x01
17
#define MPPE_40BIT      0x20
18
#define MPPE_128BIT     0x40
19
 
20
#define PPP_MPPE        0x00FD
21
#define PPP_MPPC        PPP_MPPE
22
 
23
#define MPPE_BIT_A      0x80
24
#define MPPE_BIT_B      0x40
25
#define MPPE_BIT_C      0x20
26
#define MPPE_BIT_D      0x10
27
#define MPPE_BIT_FLUSHED MPPE_BIT_A
28
#define MPPE_BIT_ENCRYPTED MPPE_BIT_D
29
#define MPPE_CCOUNT     0x0FFF
30
 
31
#define MPPC_BIT_RESET  MPPE_BIT_A
32
#define MPPC_BIT_FLUSH  MPPE_BIT_B
33
#define MPPC_BIT_COMP   MPPC_BIT_C
34
 
35
#define MPPE_40_SALT0   0xD1
36
#define MPPE_40_SALT1   0x26
37
#define MPPE_40_SALT2   0x9E
38
 
39
#define MPPE_MINLEN 4
40
 
41
#define MPPE_REQ    1
42
#define MPPE_RESP   2
43
#define MPPE_ACK    3
44
 
45
#endif
46
/*==FILEVERSION 970728==*/

powered by: WebSVN 2.1.0

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