1*5d5fbe79SDavid van Moolenbroek /* 2*5d5fbe79SDavid van Moolenbroek * ipv6cp.h - PPP IPV6 Control Protocol. 3*5d5fbe79SDavid van Moolenbroek * 4*5d5fbe79SDavid van Moolenbroek * Copyright (c) 1999 Tommi Komulainen. All rights reserved. 5*5d5fbe79SDavid van Moolenbroek * 6*5d5fbe79SDavid van Moolenbroek * Redistribution and use in source and binary forms, with or without 7*5d5fbe79SDavid van Moolenbroek * modification, are permitted provided that the following conditions 8*5d5fbe79SDavid van Moolenbroek * are met: 9*5d5fbe79SDavid van Moolenbroek * 10*5d5fbe79SDavid van Moolenbroek * 1. Redistributions of source code must retain the above copyright 11*5d5fbe79SDavid van Moolenbroek * notice, this list of conditions and the following disclaimer. 12*5d5fbe79SDavid van Moolenbroek * 13*5d5fbe79SDavid van Moolenbroek * 2. Redistributions in binary form must reproduce the above copyright 14*5d5fbe79SDavid van Moolenbroek * notice, this list of conditions and the following disclaimer in 15*5d5fbe79SDavid van Moolenbroek * the documentation and/or other materials provided with the 16*5d5fbe79SDavid van Moolenbroek * distribution. 17*5d5fbe79SDavid van Moolenbroek * 18*5d5fbe79SDavid van Moolenbroek * 3. The name(s) of the authors of this software must not be used to 19*5d5fbe79SDavid van Moolenbroek * endorse or promote products derived from this software without 20*5d5fbe79SDavid van Moolenbroek * prior written permission. 21*5d5fbe79SDavid van Moolenbroek * 22*5d5fbe79SDavid van Moolenbroek * 4. Redistributions of any form whatsoever must retain the following 23*5d5fbe79SDavid van Moolenbroek * acknowledgment: 24*5d5fbe79SDavid van Moolenbroek * "This product includes software developed by Tommi Komulainen 25*5d5fbe79SDavid van Moolenbroek * <Tommi.Komulainen@iki.fi>". 26*5d5fbe79SDavid van Moolenbroek * 27*5d5fbe79SDavid van Moolenbroek * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO 28*5d5fbe79SDavid van Moolenbroek * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 29*5d5fbe79SDavid van Moolenbroek * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY 30*5d5fbe79SDavid van Moolenbroek * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 31*5d5fbe79SDavid van Moolenbroek * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 32*5d5fbe79SDavid van Moolenbroek * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 33*5d5fbe79SDavid van Moolenbroek * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 34*5d5fbe79SDavid van Moolenbroek * 35*5d5fbe79SDavid van Moolenbroek */ 36*5d5fbe79SDavid van Moolenbroek 37*5d5fbe79SDavid van Moolenbroek /* Original version, based on RFC2023 : 38*5d5fbe79SDavid van Moolenbroek 39*5d5fbe79SDavid van Moolenbroek Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt, 40*5d5fbe79SDavid van Moolenbroek Alain.Durand@imag.fr, IMAG, 41*5d5fbe79SDavid van Moolenbroek Jean-Luc.Richier@imag.fr, IMAG-LSR. 42*5d5fbe79SDavid van Moolenbroek 43*5d5fbe79SDavid van Moolenbroek Copyright (c) 1998, 1999 Francis.Dupont@inria.fr, GIE DYADE, 44*5d5fbe79SDavid van Moolenbroek Alain.Durand@imag.fr, IMAG, 45*5d5fbe79SDavid van Moolenbroek Jean-Luc.Richier@imag.fr, IMAG-LSR. 46*5d5fbe79SDavid van Moolenbroek 47*5d5fbe79SDavid van Moolenbroek Ce travail a été fait au sein du GIE DYADE (Groupement d'Intérêt 48*5d5fbe79SDavid van Moolenbroek Économique ayant pour membres BULL S.A. et l'INRIA). 49*5d5fbe79SDavid van Moolenbroek 50*5d5fbe79SDavid van Moolenbroek Ce logiciel informatique est disponible aux conditions 51*5d5fbe79SDavid van Moolenbroek usuelles dans la recherche, c'est-à-dire qu'il peut 52*5d5fbe79SDavid van Moolenbroek être utilisé, copié, modifié, distribué à l'unique 53*5d5fbe79SDavid van Moolenbroek condition que ce texte soit conservé afin que 54*5d5fbe79SDavid van Moolenbroek l'origine de ce logiciel soit reconnue. 55*5d5fbe79SDavid van Moolenbroek 56*5d5fbe79SDavid van Moolenbroek Le nom de l'Institut National de Recherche en Informatique 57*5d5fbe79SDavid van Moolenbroek et en Automatique (INRIA), de l'IMAG, ou d'une personne morale 58*5d5fbe79SDavid van Moolenbroek ou physique ayant participé à l'élaboration de ce logiciel ne peut 59*5d5fbe79SDavid van Moolenbroek être utilisé sans son accord préalable explicite. 60*5d5fbe79SDavid van Moolenbroek 61*5d5fbe79SDavid van Moolenbroek Ce logiciel est fourni tel quel sans aucune garantie, 62*5d5fbe79SDavid van Moolenbroek support ou responsabilité d'aucune sorte. 63*5d5fbe79SDavid van Moolenbroek Ce logiciel est dérivé de sources d'origine 64*5d5fbe79SDavid van Moolenbroek "University of California at Berkeley" et 65*5d5fbe79SDavid van Moolenbroek "Digital Equipment Corporation" couvertes par des copyrights. 66*5d5fbe79SDavid van Moolenbroek 67*5d5fbe79SDavid van Moolenbroek L'Institut d'Informatique et de Mathématiques Appliquées de Grenoble (IMAG) 68*5d5fbe79SDavid van Moolenbroek est une fédération d'unités mixtes de recherche du CNRS, de l'Institut National 69*5d5fbe79SDavid van Moolenbroek Polytechnique de Grenoble et de l'Université Joseph Fourier regroupant 70*5d5fbe79SDavid van Moolenbroek sept laboratoires dont le laboratoire Logiciels, Systèmes, Réseaux (LSR). 71*5d5fbe79SDavid van Moolenbroek 72*5d5fbe79SDavid van Moolenbroek This work has been done in the context of GIE DYADE (joint R & D venture 73*5d5fbe79SDavid van Moolenbroek between BULL S.A. and INRIA). 74*5d5fbe79SDavid van Moolenbroek 75*5d5fbe79SDavid van Moolenbroek This software is available with usual "research" terms 76*5d5fbe79SDavid van Moolenbroek with the aim of retain credits of the software. 77*5d5fbe79SDavid van Moolenbroek Permission to use, copy, modify and distribute this software for any 78*5d5fbe79SDavid van Moolenbroek purpose and without fee is hereby granted, provided that the above 79*5d5fbe79SDavid van Moolenbroek copyright notice and this permission notice appear in all copies, 80*5d5fbe79SDavid van Moolenbroek and the name of INRIA, IMAG, or any contributor not be used in advertising 81*5d5fbe79SDavid van Moolenbroek or publicity pertaining to this material without the prior explicit 82*5d5fbe79SDavid van Moolenbroek permission. The software is provided "as is" without any 83*5d5fbe79SDavid van Moolenbroek warranties, support or liabilities of any kind. 84*5d5fbe79SDavid van Moolenbroek This software is derived from source code from 85*5d5fbe79SDavid van Moolenbroek "University of California at Berkeley" and 86*5d5fbe79SDavid van Moolenbroek "Digital Equipment Corporation" protected by copyrights. 87*5d5fbe79SDavid van Moolenbroek 88*5d5fbe79SDavid van Moolenbroek Grenoble's Institute of Computer Science and Applied Mathematics (IMAG) 89*5d5fbe79SDavid van Moolenbroek is a federation of seven research units funded by the CNRS, National 90*5d5fbe79SDavid van Moolenbroek Polytechnic Institute of Grenoble and University Joseph Fourier. 91*5d5fbe79SDavid van Moolenbroek The research unit in Software, Systems, Networks (LSR) is member of IMAG. 92*5d5fbe79SDavid van Moolenbroek */ 93*5d5fbe79SDavid van Moolenbroek 94*5d5fbe79SDavid van Moolenbroek /* 95*5d5fbe79SDavid van Moolenbroek * Derived from : 96*5d5fbe79SDavid van Moolenbroek * 97*5d5fbe79SDavid van Moolenbroek * 98*5d5fbe79SDavid van Moolenbroek * ipcp.h - IP Control Protocol definitions. 99*5d5fbe79SDavid van Moolenbroek * 100*5d5fbe79SDavid van Moolenbroek * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. 101*5d5fbe79SDavid van Moolenbroek * 102*5d5fbe79SDavid van Moolenbroek * Redistribution and use in source and binary forms, with or without 103*5d5fbe79SDavid van Moolenbroek * modification, are permitted provided that the following conditions 104*5d5fbe79SDavid van Moolenbroek * are met: 105*5d5fbe79SDavid van Moolenbroek * 106*5d5fbe79SDavid van Moolenbroek * 1. Redistributions of source code must retain the above copyright 107*5d5fbe79SDavid van Moolenbroek * notice, this list of conditions and the following disclaimer. 108*5d5fbe79SDavid van Moolenbroek * 109*5d5fbe79SDavid van Moolenbroek * 2. Redistributions in binary form must reproduce the above copyright 110*5d5fbe79SDavid van Moolenbroek * notice, this list of conditions and the following disclaimer in 111*5d5fbe79SDavid van Moolenbroek * the documentation and/or other materials provided with the 112*5d5fbe79SDavid van Moolenbroek * distribution. 113*5d5fbe79SDavid van Moolenbroek * 114*5d5fbe79SDavid van Moolenbroek * 3. The name "Carnegie Mellon University" must not be used to 115*5d5fbe79SDavid van Moolenbroek * endorse or promote products derived from this software without 116*5d5fbe79SDavid van Moolenbroek * prior written permission. For permission or any legal 117*5d5fbe79SDavid van Moolenbroek * details, please contact 118*5d5fbe79SDavid van Moolenbroek * Office of Technology Transfer 119*5d5fbe79SDavid van Moolenbroek * Carnegie Mellon University 120*5d5fbe79SDavid van Moolenbroek * 5000 Forbes Avenue 121*5d5fbe79SDavid van Moolenbroek * Pittsburgh, PA 15213-3890 122*5d5fbe79SDavid van Moolenbroek * (412) 268-4387, fax: (412) 268-7395 123*5d5fbe79SDavid van Moolenbroek * tech-transfer@andrew.cmu.edu 124*5d5fbe79SDavid van Moolenbroek * 125*5d5fbe79SDavid van Moolenbroek * 4. Redistributions of any form whatsoever must retain the following 126*5d5fbe79SDavid van Moolenbroek * acknowledgment: 127*5d5fbe79SDavid van Moolenbroek * "This product includes software developed by Computing Services 128*5d5fbe79SDavid van Moolenbroek * at Carnegie Mellon University (http://www.cmu.edu/computing/)." 129*5d5fbe79SDavid van Moolenbroek * 130*5d5fbe79SDavid van Moolenbroek * CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO 131*5d5fbe79SDavid van Moolenbroek * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 132*5d5fbe79SDavid van Moolenbroek * AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE 133*5d5fbe79SDavid van Moolenbroek * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 134*5d5fbe79SDavid van Moolenbroek * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 135*5d5fbe79SDavid van Moolenbroek * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 136*5d5fbe79SDavid van Moolenbroek * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 137*5d5fbe79SDavid van Moolenbroek * 138*5d5fbe79SDavid van Moolenbroek * $Id: ipv6cp.h,v 1.7 2002/12/04 23:03:32 paulus Exp $ 139*5d5fbe79SDavid van Moolenbroek */ 140*5d5fbe79SDavid van Moolenbroek 141*5d5fbe79SDavid van Moolenbroek #include "netif/ppp/ppp_opts.h" 142*5d5fbe79SDavid van Moolenbroek #if PPP_SUPPORT && PPP_IPV6_SUPPORT /* don't build if not configured for use in lwipopts.h */ 143*5d5fbe79SDavid van Moolenbroek 144*5d5fbe79SDavid van Moolenbroek #ifndef IPV6CP_H 145*5d5fbe79SDavid van Moolenbroek #define IPV6CP_H 146*5d5fbe79SDavid van Moolenbroek 147*5d5fbe79SDavid van Moolenbroek #include "eui64.h" 148*5d5fbe79SDavid van Moolenbroek 149*5d5fbe79SDavid van Moolenbroek /* 150*5d5fbe79SDavid van Moolenbroek * Options. 151*5d5fbe79SDavid van Moolenbroek */ 152*5d5fbe79SDavid van Moolenbroek #define CI_IFACEID 1 /* Interface Identifier */ 153*5d5fbe79SDavid van Moolenbroek #ifdef IPV6CP_COMP 154*5d5fbe79SDavid van Moolenbroek #define CI_COMPRESSTYPE 2 /* Compression Type */ 155*5d5fbe79SDavid van Moolenbroek #endif /* IPV6CP_COMP */ 156*5d5fbe79SDavid van Moolenbroek 157*5d5fbe79SDavid van Moolenbroek /* No compression types yet defined. 158*5d5fbe79SDavid van Moolenbroek *#define IPV6CP_COMP 0x004f 159*5d5fbe79SDavid van Moolenbroek */ 160*5d5fbe79SDavid van Moolenbroek typedef struct ipv6cp_options { 161*5d5fbe79SDavid van Moolenbroek unsigned int neg_ifaceid :1; /* Negotiate interface identifier? */ 162*5d5fbe79SDavid van Moolenbroek unsigned int req_ifaceid :1; /* Ask peer to send interface identifier? */ 163*5d5fbe79SDavid van Moolenbroek unsigned int accept_local :1; /* accept peer's value for iface id? */ 164*5d5fbe79SDavid van Moolenbroek unsigned int opt_local :1; /* ourtoken set by option */ 165*5d5fbe79SDavid van Moolenbroek unsigned int opt_remote :1; /* histoken set by option */ 166*5d5fbe79SDavid van Moolenbroek unsigned int use_ip :1; /* use IP as interface identifier */ 167*5d5fbe79SDavid van Moolenbroek #if 0 168*5d5fbe79SDavid van Moolenbroek unsigned int use_persistent :1; /* use uniquely persistent value for address */ 169*5d5fbe79SDavid van Moolenbroek #endif 170*5d5fbe79SDavid van Moolenbroek #ifdef IPV6CP_COMP 171*5d5fbe79SDavid van Moolenbroek unsigned int neg_vj :1; /* Van Jacobson Compression? */ 172*5d5fbe79SDavid van Moolenbroek #endif /* IPV6CP_COMP */ 173*5d5fbe79SDavid van Moolenbroek 174*5d5fbe79SDavid van Moolenbroek #ifdef IPV6CP_COMP 175*5d5fbe79SDavid van Moolenbroek u_short vj_protocol; /* protocol value to use in VJ option */ 176*5d5fbe79SDavid van Moolenbroek #endif /* IPV6CP_COMP */ 177*5d5fbe79SDavid van Moolenbroek eui64_t ourid, hisid; /* Interface identifiers */ 178*5d5fbe79SDavid van Moolenbroek } ipv6cp_options; 179*5d5fbe79SDavid van Moolenbroek 180*5d5fbe79SDavid van Moolenbroek extern const struct protent ipv6cp_protent; 181*5d5fbe79SDavid van Moolenbroek 182*5d5fbe79SDavid van Moolenbroek #endif /* IPV6CP_H */ 183*5d5fbe79SDavid van Moolenbroek #endif /* PPP_SUPPORT && PPP_IPV6_SUPPORT */ 184