162587Sitojun/* $FreeBSD$ */ 2121684Sume/* $KAME: ip_ecn.h,v 1.8 2002/01/07 11:34:47 kjc Exp $ */ 362587Sitojun 4139823Simp/*- 555009Sshin * Copyright (C) 1999 WIDE Project. 655009Sshin * All rights reserved. 755009Sshin * 855009Sshin * Redistribution and use in source and binary forms, with or without 955009Sshin * modification, are permitted provided that the following conditions 1055009Sshin * are met: 1155009Sshin * 1. Redistributions of source code must retain the above copyright 1255009Sshin * notice, this list of conditions and the following disclaimer. 1355009Sshin * 2. Redistributions in binary form must reproduce the above copyright 1455009Sshin * notice, this list of conditions and the following disclaimer in the 1555009Sshin * documentation and/or other materials provided with the distribution. 1655009Sshin * 3. Neither the name of the project nor the names of its contributors 1755009Sshin * may be used to endorse or promote products derived from this software 1855009Sshin * without specific prior written permission. 1955009Sshin * 2055009Sshin * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 2155009Sshin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2255009Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2355009Sshin * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 2455009Sshin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2555009Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2655009Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2755009Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2855009Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2955009Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3055009Sshin * SUCH DAMAGE. 3155009Sshin * 3255009Sshin */ 3355009Sshin/* 3455009Sshin * ECN consideration on tunnel ingress/egress operation. 3555009Sshin * http://www.aciri.org/floyd/papers/draft-ipsec-ecn-00.txt 3655009Sshin */ 3755009Sshin 38121684Sume#ifndef _NETINET_IP_ECN_H_ 39121684Sume#define _NETINET_IP_ECN_H_ 40121684Sume 4178064Sume#if defined(_KERNEL) && !defined(_LKM) 4278064Sume#include "opt_inet.h" 4378064Sume#endif 4478064Sume 4562587Sitojun#define ECN_ALLOWED 1 /* ECN allowed */ 4662587Sitojun#define ECN_FORBIDDEN 0 /* ECN forbidden */ 4762587Sitojun#define ECN_NOCARE (-1) /* no consideration to ECN */ 4855009Sshin 4955205Speter#ifdef _KERNEL 5092723Salfredextern void ip_ecn_ingress(int, u_int8_t *, const u_int8_t *); 51121684Sumeextern int ip_ecn_egress(int, const u_int8_t *, u_int8_t *); 5255009Sshin#endif 53121684Sume#endif 54