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