xref: /freebsd/sys/netinet6/ip6_ecn.h (revision 2ff63af9b88c7413b7d71715b5532625752a248e)
1caf43b02SWarner Losh /*-
2*51369649SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
3*51369649SPedro F. Giffuni  *
46a800098SYoshinobu Inoue  * Copyright (C) 1999 WIDE Project.
56a800098SYoshinobu Inoue  * All rights reserved.
66a800098SYoshinobu Inoue  *
76a800098SYoshinobu Inoue  * Redistribution and use in source and binary forms, with or without
86a800098SYoshinobu Inoue  * modification, are permitted provided that the following conditions
96a800098SYoshinobu Inoue  * are met:
106a800098SYoshinobu Inoue  * 1. Redistributions of source code must retain the above copyright
116a800098SYoshinobu Inoue  *    notice, this list of conditions and the following disclaimer.
126a800098SYoshinobu Inoue  * 2. Redistributions in binary form must reproduce the above copyright
136a800098SYoshinobu Inoue  *    notice, this list of conditions and the following disclaimer in the
146a800098SYoshinobu Inoue  *    documentation and/or other materials provided with the distribution.
156a800098SYoshinobu Inoue  * 3. Neither the name of the project nor the names of its contributors
166a800098SYoshinobu Inoue  *    may be used to endorse or promote products derived from this software
176a800098SYoshinobu Inoue  *    without specific prior written permission.
186a800098SYoshinobu Inoue  *
196a800098SYoshinobu Inoue  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
206a800098SYoshinobu Inoue  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
216a800098SYoshinobu Inoue  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
226a800098SYoshinobu Inoue  * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
236a800098SYoshinobu Inoue  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
246a800098SYoshinobu Inoue  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
256a800098SYoshinobu Inoue  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
266a800098SYoshinobu Inoue  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
276a800098SYoshinobu Inoue  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
286a800098SYoshinobu Inoue  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
296a800098SYoshinobu Inoue  * SUCH DAMAGE.
306a800098SYoshinobu Inoue  *
31b48287a3SDavid E. O'Brien  *	$KAME: ip_ecn.h,v 1.5 2000/03/27 04:58:38 sumikawa Exp $
326a800098SYoshinobu Inoue  */
33b48287a3SDavid E. O'Brien 
346a800098SYoshinobu Inoue /*
356a800098SYoshinobu Inoue  * ECN consideration on tunnel ingress/egress operation.
366a800098SYoshinobu Inoue  * http://www.aciri.org/floyd/papers/draft-ipsec-ecn-00.txt
376a800098SYoshinobu Inoue  */
386a800098SYoshinobu Inoue 
39664a31e4SPeter Wemm #ifdef _KERNEL
4059dfcba4SHajimu UMEMOTO extern void ip6_ecn_ingress(int, u_int32_t *, const u_int32_t *);
4159dfcba4SHajimu UMEMOTO extern int ip6_ecn_egress(int, const u_int32_t *, u_int32_t *);
426a800098SYoshinobu Inoue #endif
43