xref: /nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/netif/ppp/ecp.h (revision 104654410c56c573564690304ae786df310c91fc)
1*10465441SEvalZero /*
2*10465441SEvalZero  * ecp.h - Definitions for PPP Encryption Control Protocol.
3*10465441SEvalZero  *
4*10465441SEvalZero  * Copyright (c) 2002 Google, Inc.
5*10465441SEvalZero  * All rights reserved.
6*10465441SEvalZero  *
7*10465441SEvalZero  * Redistribution and use in source and binary forms, with or without
8*10465441SEvalZero  * modification, are permitted provided that the following conditions
9*10465441SEvalZero  * are met:
10*10465441SEvalZero  *
11*10465441SEvalZero  * 1. Redistributions of source code must retain the above copyright
12*10465441SEvalZero  *    notice, this list of conditions and the following disclaimer.
13*10465441SEvalZero  *
14*10465441SEvalZero  * 2. Redistributions in binary form must reproduce the above copyright
15*10465441SEvalZero  *    notice, this list of conditions and the following disclaimer in
16*10465441SEvalZero  *    the documentation and/or other materials provided with the
17*10465441SEvalZero  *    distribution.
18*10465441SEvalZero  *
19*10465441SEvalZero  * 3. The name(s) of the authors of this software must not be used to
20*10465441SEvalZero  *    endorse or promote products derived from this software without
21*10465441SEvalZero  *    prior written permission.
22*10465441SEvalZero  *
23*10465441SEvalZero  * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
24*10465441SEvalZero  * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25*10465441SEvalZero  * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
26*10465441SEvalZero  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27*10465441SEvalZero  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
28*10465441SEvalZero  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
29*10465441SEvalZero  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30*10465441SEvalZero  *
31*10465441SEvalZero  * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $
32*10465441SEvalZero  */
33*10465441SEvalZero 
34*10465441SEvalZero #include "netif/ppp/ppp_opts.h"
35*10465441SEvalZero #if PPP_SUPPORT && ECP_SUPPORT  /* don't build if not configured for use in lwipopts.h */
36*10465441SEvalZero 
37*10465441SEvalZero typedef struct ecp_options {
38*10465441SEvalZero     bool required;		/* Is ECP required? */
39*10465441SEvalZero     unsigned enctype;		/* Encryption type */
40*10465441SEvalZero } ecp_options;
41*10465441SEvalZero 
42*10465441SEvalZero extern fsm ecp_fsm[];
43*10465441SEvalZero extern ecp_options ecp_wantoptions[];
44*10465441SEvalZero extern ecp_options ecp_gotoptions[];
45*10465441SEvalZero extern ecp_options ecp_allowoptions[];
46*10465441SEvalZero extern ecp_options ecp_hisoptions[];
47*10465441SEvalZero 
48*10465441SEvalZero extern const struct protent ecp_protent;
49*10465441SEvalZero 
50*10465441SEvalZero #endif /* PPP_SUPPORT && ECP_SUPPORT */
51