1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * cbcp - Call Back Configuration Protocol.
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * Copyright (c) 2000 by Sun Microsystems, Inc.
5*7c478bd9Sstevel@tonic-gate  * All rights reserved.
6*7c478bd9Sstevel@tonic-gate  *
7*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1995 Pedro Roque Marques
8*7c478bd9Sstevel@tonic-gate  * All rights reserved.
9*7c478bd9Sstevel@tonic-gate  */
10*7c478bd9Sstevel@tonic-gate 
11*7c478bd9Sstevel@tonic-gate #ifndef CBCP_H
12*7c478bd9Sstevel@tonic-gate #define CBCP_H
13*7c478bd9Sstevel@tonic-gate 
14*7c478bd9Sstevel@tonic-gate typedef struct cbcp_state {
15*7c478bd9Sstevel@tonic-gate     int    us_unit;	/* Interface unit number */
16*7c478bd9Sstevel@tonic-gate     u_char us_id;		/* Current id */
17*7c478bd9Sstevel@tonic-gate     u_char us_allowed;
18*7c478bd9Sstevel@tonic-gate     int    us_type;
19*7c478bd9Sstevel@tonic-gate     char   *us_number;    /* Telefone Number */
20*7c478bd9Sstevel@tonic-gate } cbcp_state;
21*7c478bd9Sstevel@tonic-gate 
22*7c478bd9Sstevel@tonic-gate extern cbcp_state cbcp[];
23*7c478bd9Sstevel@tonic-gate 
24*7c478bd9Sstevel@tonic-gate extern struct protent cbcp_protent;
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate #define CBCP_MINLEN 4
27*7c478bd9Sstevel@tonic-gate 
28*7c478bd9Sstevel@tonic-gate #define CBCP_REQ    1
29*7c478bd9Sstevel@tonic-gate #define CBCP_RESP   2
30*7c478bd9Sstevel@tonic-gate #define CBCP_ACK    3
31*7c478bd9Sstevel@tonic-gate 
32*7c478bd9Sstevel@tonic-gate #define CB_CONF_NO     1
33*7c478bd9Sstevel@tonic-gate #define CB_CONF_USER   2
34*7c478bd9Sstevel@tonic-gate #define CB_CONF_ADMIN  3
35*7c478bd9Sstevel@tonic-gate #define CB_CONF_LIST   4
36*7c478bd9Sstevel@tonic-gate #endif
37