Annotation of embedaddon/mpd/src/ccp_mppc.h, revision 1.1.1.1
1.1 misho 1:
2: /*
3: * ccp_mppc.h
4: *
5: * Written by Archie Cobbs <archie@freebsd.org>
6: * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
7: * See ``COPYRIGHT.whistle''
8: */
9:
10: #ifndef _CCP_MPPC_H_
11: #define _CCP_MPPC_H_
12:
13: #include "defs.h"
14:
15: #ifdef CCP_MPPC
16:
17: #include "mbuf.h"
18: #include "comp.h"
19:
20: #include <netgraph/ng_message.h>
21: #include <netgraph/ng_mppc.h>
22:
23: /*
24: * DEFINITIONS
25: */
26:
27: struct mppcinfo {
28: struct optinfo options; /* configured protocols */
29: uint32_t peer_reject; /* types rejected by peer */
30: uint32_t recv_bits; /* recv config bits */
31: uint32_t xmit_bits; /* xmit config bits */
32: u_char xmit_key0[MPPE_KEY_LEN];/* xmit start key */
33: u_char recv_key0[MPPE_KEY_LEN];/* recv start key */
34: };
35: typedef struct mppcinfo *MppcInfo;
36:
37: #define MPPC_PEER_REJECTED(p,x) ((p)->peer_reject & (1<<(x)))
38: #define MPPC_PEER_REJ(p,x) do{(p)->peer_reject |= (1<<(x));}while(0)
39:
40: /*
41: * VARIABLES
42: */
43:
44: extern const struct comptype gCompMppcInfo;
45: extern const struct cmdtab MppcSetCmds[];
46: extern int MPPCPresent;
47: extern int MPPEPresent;
48:
49: extern int MppcStat(Context ctx, int ac, char *av[], void *arg);
50: extern int MppcTestCap(void);
51:
52: #endif
53:
54: #endif
55:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>