xref: /titanic_51/usr/src/cmd/cmd-inet/usr.bin/pppd/cbcp.h (revision 6a72db4a7fa12c3e0d1c1cf91a07390739fa0fbf)
1 /*
2  * cbcp - Call Back Configuration Protocol.
3  *
4  * Copyright (c) 2000 by Sun Microsystems, Inc.
5  * All rights reserved.
6  *
7  * Copyright (c) 1995 Pedro Roque Marques
8  * All rights reserved.
9  */
10 
11 #pragma ident	"%Z%%M%	%I%	%E% SMI"
12 
13 #ifndef CBCP_H
14 #define CBCP_H
15 
16 typedef struct cbcp_state {
17     int    us_unit;	/* Interface unit number */
18     u_char us_id;		/* Current id */
19     u_char us_allowed;
20     int    us_type;
21     char   *us_number;    /* Telefone Number */
22 } cbcp_state;
23 
24 extern cbcp_state cbcp[];
25 
26 extern struct protent cbcp_protent;
27 
28 #define CBCP_MINLEN 4
29 
30 #define CBCP_REQ    1
31 #define CBCP_RESP   2
32 #define CBCP_ACK    3
33 
34 #define CB_CONF_NO     1
35 #define CB_CONF_USER   2
36 #define CB_CONF_ADMIN  3
37 #define CB_CONF_LIST   4
38 #endif
39