xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/cbcp.h (revision f012ee0c3db17469b492c2cf757226f3d7b1ebbc)
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