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 #pragma ident "%Z%%M% %I% %E% SMI" 12*7c478bd9Sstevel@tonic-gate 13*7c478bd9Sstevel@tonic-gate #ifndef CBCP_H 14*7c478bd9Sstevel@tonic-gate #define CBCP_H 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gate typedef struct cbcp_state { 17*7c478bd9Sstevel@tonic-gate int us_unit; /* Interface unit number */ 18*7c478bd9Sstevel@tonic-gate u_char us_id; /* Current id */ 19*7c478bd9Sstevel@tonic-gate u_char us_allowed; 20*7c478bd9Sstevel@tonic-gate int us_type; 21*7c478bd9Sstevel@tonic-gate char *us_number; /* Telefone Number */ 22*7c478bd9Sstevel@tonic-gate } cbcp_state; 23*7c478bd9Sstevel@tonic-gate 24*7c478bd9Sstevel@tonic-gate extern cbcp_state cbcp[]; 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gate extern struct protent cbcp_protent; 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gate #define CBCP_MINLEN 4 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate #define CBCP_REQ 1 31*7c478bd9Sstevel@tonic-gate #define CBCP_RESP 2 32*7c478bd9Sstevel@tonic-gate #define CBCP_ACK 3 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate #define CB_CONF_NO 1 35*7c478bd9Sstevel@tonic-gate #define CB_CONF_USER 2 36*7c478bd9Sstevel@tonic-gate #define CB_CONF_ADMIN 3 37*7c478bd9Sstevel@tonic-gate #define CB_CONF_LIST 4 38*7c478bd9Sstevel@tonic-gate #endif 39