Deleted Added
full compact
lcp.h (26516) lcp.h (28679)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $Id: lcp.h,v 1.6 1997/02/22 16:10:24 peter Exp $
18 * $Id: lcp.h,v 1.7 1997/06/09 03:27:25 brian Exp $
19 *
20 * TODO:
21 */
22
23#ifndef _LCP_H_
24#define _LPC_H_
25
26struct lcpstate {
19 *
20 * TODO:
21 */
22
23#ifndef _LCP_H_
24#define _LPC_H_
25
26struct lcpstate {
27 u_long his_mru;
28 u_long his_accmap;
29 u_long his_magic;
30 u_long his_lqrperiod;
31 u_char his_protocomp;
32 u_char his_acfcomp;
27 u_long his_mru;
28 u_long his_accmap;
29 u_long his_magic;
30 u_long his_lqrperiod;
31 u_char his_protocomp;
32 u_char his_acfcomp;
33 u_short his_auth;
34
33 u_short his_auth;
34
35 u_long want_mru;
36 u_long want_accmap;
37 u_long want_magic;
38 u_long want_lqrperiod;
39 u_char want_protocomp;
40 u_char want_acfcomp;
35 u_long want_mru;
36 u_long want_accmap;
37 u_long want_magic;
38 u_long want_lqrperiod;
39 u_char want_protocomp;
40 u_char want_acfcomp;
41 u_short want_auth;
42
41 u_short want_auth;
42
43 u_long his_reject; /* Request codes rejected by peer */
44 u_long my_reject; /* Request codes I have rejected */
43 u_long his_reject; /* Request codes rejected by peer */
44 u_long my_reject; /* Request codes I have rejected */
45
46 u_short auth_iwait;
47 u_short auth_ineed;
48};
49
50#define LCP_MAXCODE CODE_DISCREQ
51
52#define TY_MRU 1 /* Maximum-Receive-Unit */

--- 8 unchanged lines hidden (view full) ---

61#define TY_SDP 10 /* Self-Dscribing-Padding */
62#define TY_NUMMODE 11 /* Numbered-Mode */
63#define TY_XXXXXX 12
64#define TY_CALLBACK 13 /* Callback */
65#define TY_YYYYYY 14
66#define TY_COMPFRAME 15 /* Compound-Frames */
67
68struct lqrreq {
45
46 u_short auth_iwait;
47 u_short auth_ineed;
48};
49
50#define LCP_MAXCODE CODE_DISCREQ
51
52#define TY_MRU 1 /* Maximum-Receive-Unit */

--- 8 unchanged lines hidden (view full) ---

61#define TY_SDP 10 /* Self-Dscribing-Padding */
62#define TY_NUMMODE 11 /* Numbered-Mode */
63#define TY_XXXXXX 12
64#define TY_CALLBACK 13 /* Callback */
65#define TY_YYYYYY 14
66#define TY_COMPFRAME 15 /* Compound-Frames */
67
68struct lqrreq {
69 u_char type;
70 u_char length;
69 u_char type;
70 u_char length;
71 u_short proto; /* Quality protocol */
71 u_short proto; /* Quality protocol */
72 u_long period; /* Reporting interval */
72 u_long period; /* Reporting interval */
73};
74
75extern struct lcpstate LcpInfo;
76
77extern void LcpInit(void);
78extern void LcpUp(void);
79extern void LcpSendProtoRej(u_char *, int);
80extern void LcpOpen(int mode);
81extern void LcpClose(void);
82extern void LcpDown(void);
73};
74
75extern struct lcpstate LcpInfo;
76
77extern void LcpInit(void);
78extern void LcpUp(void);
79extern void LcpSendProtoRej(u_char *, int);
80extern void LcpOpen(int mode);
81extern void LcpClose(void);
82extern void LcpDown(void);
83
83#endif
84#endif