xref: /titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/ipv6cp.h (revision 6dfee4834394825da35b977ca71cdc965bc7b6a4)
1 /*
2     ipv6cp.h - PPP IPV6 Control Protocol.
3     Copyright (C) 1999  Tommi Komulainen <Tommi.Komulainen@iki.fi>
4 
5     Redistribution and use in source and binary forms are permitted
6     provided that the above copyright notice and this paragraph are
7     duplicated in all such forms.  The name of the author may not be
8     used to endorse or promote products derived from this software
9     without specific prior written permission.
10     THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
11     IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12     WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 /*  Original version, based on RFC2023 :
16 
17     Copyright (c) 1995, 1996, 1997 Francis.Dupont@inria.fr, INRIA Rocquencourt,
18     Alain.Durand@imag.fr, IMAG,
19     Jean-Luc.Richier@imag.fr, IMAG-LSR.
20 
21     Copyright (c) 1998, 1999 Francis.Dupont@inria.fr, GIE DYADE,
22     Alain.Durand@imag.fr, IMAG,
23     Jean-Luc.Richier@imag.fr, IMAG-LSR.
24 
25     Ce travail a �t� fait au sein du GIE DYADE (Groupement d'Int�r�t
26     �conomique ayant pour membres BULL S.A. et l'INRIA).
27 
28     Ce logiciel informatique est disponible aux conditions
29     usuelles dans la recherche, c'est-�-dire qu'il peut
30     �tre utilis�, copi�, modifi�, distribu� � l'unique
31     condition que ce texte soit conserv� afin que
32     l'origine de ce logiciel soit reconnue.
33 
34     Le nom de l'Institut National de Recherche en Informatique
35     et en Automatique (INRIA), de l'IMAG, ou d'une personne morale
36     ou physique ayant particip� � l'�laboration de ce logiciel ne peut
37     �tre utilis� sans son accord pr�alable explicite.
38 
39     Ce logiciel est fourni tel quel sans aucune garantie,
40     support ou responsabilit� d'aucune sorte.
41     Ce logiciel est d�riv� de sources d'origine
42     "University of California at Berkeley" et
43     "Digital Equipment Corporation" couvertes par des copyrights.
44 
45     L'Institut d'Informatique et de Math�matiques Appliqu�es de Grenoble (IMAG)
46     est une f�d�ration d'unit�s mixtes de recherche du CNRS, de l'Institut National
47     Polytechnique de Grenoble et de l'Universit� Joseph Fourier regroupant
48     sept laboratoires dont le laboratoire Logiciels, Syst�mes, R�seaux (LSR).
49 
50     This work has been done in the context of GIE DYADE (joint R & D venture
51     between BULL S.A. and INRIA).
52 
53     This software is available with usual "research" terms
54     with the aim of retain credits of the software.
55     Permission to use, copy, modify and distribute this software for any
56     purpose and without fee is hereby granted, provided that the above
57     copyright notice and this permission notice appear in all copies,
58     and the name of INRIA, IMAG, or any contributor not be used in advertising
59     or publicity pertaining to this material without the prior explicit
60     permission. The software is provided "as is" without any
61     warranties, support or liabilities of any kind.
62     This software is derived from source code from
63     "University of California at Berkeley" and
64     "Digital Equipment Corporation" protected by copyrights.
65 
66     Grenoble's Institute of Computer Science and Applied Mathematics (IMAG)
67     is a federation of seven research units funded by the CNRS, National
68     Polytechnic Institute of Grenoble and University Joseph Fourier.
69     The research unit in Software, Systems, Networks (LSR) is member of IMAG.
70 */
71 
72 /*
73  * Derived from :
74  *
75  *
76  * ipcp.h - IP Control Protocol definitions.
77  *
78  * Copyright (c) 1989 Carnegie Mellon University.
79  * All rights reserved.
80  *
81  * Redistribution and use in source and binary forms are permitted
82  * provided that the above copyright notice and this paragraph are
83  * duplicated in all such forms and that any documentation,
84  * advertising materials, and other materials related to such
85  * distribution and use acknowledge that the software was developed
86  * by Carnegie Mellon University.  The name of the
87  * University may not be used to endorse or promote products derived
88  * from this software without specific prior written permission.
89  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
90  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
91  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
92  *
93  * $Id: ipv6cp.h,v 1.3 1999/09/30 19:57:45 masputra Exp $
94  */
95 
96 #pragma ident	"%Z%%M%	%I%	%E% SMI"
97 
98 /*
99  * Options.
100  */
101 #define CI_IFACEID	1	/* Interface Identifier */
102 #define CI_COMPRESSTYPE	2	/* Compression Type     */
103 
104 /*
105  *#define IPV6CP_COMP	0x0061
106  */
107 typedef struct ipv6cp_options {
108     bool neg_ifaceid;		/* Negotiate interface identifier? */
109     bool req_ifaceid;		/* Ask peer to send interface identifier? */
110     bool accept_local;		/* accept peer's value for iface id? */
111     bool opt_local;		/* ourtoken set by option */
112     bool opt_remote;		/* histoken set by option */
113     bool use_ip;		/* use IP as interface identifier */
114 #if defined(SOL2)
115     bool use_persistent;	/* use uniquely persistent value for address */
116 #endif /* defined(SOL2) */
117     bool neg_vj;		/* Van Jacobson Compression? */
118     u_short vj_protocol;	/* protocol value to use in VJ option */
119     eui64_t ourid, hisid;	/* Interface identifiers */
120 } ipv6cp_options;
121 
122 extern fsm ipv6cp_fsm[];
123 extern ipv6cp_options ipv6cp_wantoptions[];
124 extern ipv6cp_options ipv6cp_gotoptions[];
125 extern ipv6cp_options ipv6cp_allowoptions[];
126 extern ipv6cp_options ipv6cp_hisoptions[];
127 
128 extern struct protent ipv6cp_protent;
129