Debian Codegraph @

pppd/cbcp.h

raw
1 /*
2 * Copyright (c) 1995 Pedro Roque Marques. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * 3. The names of the authors of this software must not be used to
17 * endorse or promote products derived from this software without
18 * prior written permission.
19 *
20 * 4. Redistributions of any form whatsoever must retain the following
21 * acknowledgment:
22 * "This product includes software developed by Pedro Roque Marques
23 * <[email protected]>"
24 *
25 * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
26 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27 * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
28 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
29 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
30 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
31 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
32 */
33 #ifndef PPP_CBCP_H
34 #define PPP_CBCP_H
35
36 #include "pppdconf.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 typedef struct cbcp_state {
43 int us_unit; /* Interface unit number */
44 u_char us_id; /* Current id */
45 u_char us_allowed;
46 int us_type;
47 char *us_number; /* Telefone Number */
48 } cbcp_state;
49
50 extern cbcp_state cbcp[];
51
52 extern struct protent cbcp_protent;
53
54 #define CBCP_MINLEN 4
55
56 #define CBCP_REQ 1
57 #define CBCP_RESP 2
58 #define CBCP_ACK 3
59
60 #define CB_CONF_NO 1
61 #define CB_CONF_USER 2
62 #define CB_CONF_ADMIN 3
63 #define CB_CONF_LIST 4
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif // PPP_CBCP_H