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