1 |
786 |
skrzyp |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// include/cbcp.h
|
4 |
|
|
//
|
5 |
|
|
//==========================================================================
|
6 |
|
|
// ####ECOSGPLCOPYRIGHTBEGIN####
|
7 |
|
|
// -------------------------------------------
|
8 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
9 |
|
|
// Copyright (C) 2003 Free Software Foundation, Inc.
|
10 |
|
|
//
|
11 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
12 |
|
|
// the terms of the GNU General Public License as published by the Free
|
13 |
|
|
// Software Foundation; either version 2 or (at your option) any later
|
14 |
|
|
// version.
|
15 |
|
|
//
|
16 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT
|
17 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
18 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
19 |
|
|
// for more details.
|
20 |
|
|
//
|
21 |
|
|
// You should have received a copy of the GNU General Public License
|
22 |
|
|
// along with eCos; if not, write to the Free Software Foundation, Inc.,
|
23 |
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
24 |
|
|
//
|
25 |
|
|
// As a special exception, if other files instantiate templates or use
|
26 |
|
|
// macros or inline functions from this file, or you compile this file
|
27 |
|
|
// and link it with other works to produce a work based on this file,
|
28 |
|
|
// this file does not by itself cause the resulting work to be covered by
|
29 |
|
|
// the GNU General Public License. However the source code for this file
|
30 |
|
|
// must still be made available in accordance with section (3) of the GNU
|
31 |
|
|
// General Public License v2.
|
32 |
|
|
//
|
33 |
|
|
// This exception does not invalidate any other reasons why a work based
|
34 |
|
|
// on this file might be covered by the GNU General Public License.
|
35 |
|
|
// -------------------------------------------
|
36 |
|
|
// ####ECOSGPLCOPYRIGHTEND####
|
37 |
|
|
// ####BSDALTCOPYRIGHTBEGIN####
|
38 |
|
|
// -------------------------------------------
|
39 |
|
|
// Portions of this software may have been derived from FreeBSD, OpenBSD,
|
40 |
|
|
// or other sources, and if so are covered by the appropriate copyright
|
41 |
|
|
// and license included herein.
|
42 |
|
|
// -------------------------------------------
|
43 |
|
|
// ####BSDALTCOPYRIGHTEND####
|
44 |
|
|
//==========================================================================
|
45 |
|
|
|
46 |
|
|
#ifndef CBCP_H
|
47 |
|
|
#define CBCP_H
|
48 |
|
|
|
49 |
|
|
typedef struct cbcp_state {
|
50 |
|
|
int us_unit; /* Interface unit number */
|
51 |
|
|
u_char us_id; /* Current id */
|
52 |
|
|
u_char us_allowed;
|
53 |
|
|
int us_type;
|
54 |
|
|
char *us_number; /* Telefone Number */
|
55 |
|
|
} cbcp_state;
|
56 |
|
|
|
57 |
|
|
extern cbcp_state cbcp[];
|
58 |
|
|
|
59 |
|
|
extern struct protent cbcp_protent;
|
60 |
|
|
|
61 |
|
|
#define CBCP_MINLEN 4
|
62 |
|
|
|
63 |
|
|
#define CBCP_REQ 1
|
64 |
|
|
#define CBCP_RESP 2
|
65 |
|
|
#define CBCP_ACK 3
|
66 |
|
|
|
67 |
|
|
#define CB_CONF_NO 1
|
68 |
|
|
#define CB_CONF_USER 2
|
69 |
|
|
#define CB_CONF_ADMIN 3
|
70 |
|
|
#define CB_CONF_LIST 4
|
71 |
|
|
#endif
|