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