summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ecn.h
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-29 15:07:04 +0000
committerume <ume@FreeBSD.org>2003-10-29 15:07:04 +0000
commitb9fecc82d3e55cefb5fd427307272fed377b780a (patch)
treeff2af6160ee3c3b0bf6e218dc2107ae003e82cde /sys/netinet/ip_ecn.h
parentf965698ed4683de29221f38b96189223a4cf0b2e (diff)
downloadFreeBSD-src-b9fecc82d3e55cefb5fd427307272fed377b780a.zip
FreeBSD-src-b9fecc82d3e55cefb5fd427307272fed377b780a.tar.gz
add ECN support in layer-3.
- implement the tunnel egress rule in ip_ecn_egress() in ip_ecn.c. make ip{,6}_ecn_egress() return integer to tell the caller that this packet should be dropped. - handle ECN at fragment reassembly in ip_input.c and frag6.c. Obtained from: KAME
Diffstat (limited to 'sys/netinet/ip_ecn.h')
-rw-r--r--sys/netinet/ip_ecn.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/ip_ecn.h b/sys/netinet/ip_ecn.h
index 1a38a48..01163ed 100644
--- a/sys/netinet/ip_ecn.h
+++ b/sys/netinet/ip_ecn.h
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: ip_ecn.h,v 1.6 2001/05/03 14:51:48 itojun Exp $ */
+/* $KAME: ip_ecn.h,v 1.8 2002/01/07 11:34:47 kjc Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@@ -35,6 +35,9 @@
* http://www.aciri.org/floyd/papers/draft-ipsec-ecn-00.txt
*/
+#ifndef _NETINET_IP_ECN_H_
+#define _NETINET_IP_ECN_H_
+
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
@@ -45,5 +48,6 @@
#ifdef _KERNEL
extern void ip_ecn_ingress(int, u_int8_t *, const u_int8_t *);
-extern void ip_ecn_egress(int, const u_int8_t *, u_int8_t *);
+extern int ip_ecn_egress(int, const u_int8_t *, u_int8_t *);
+#endif
#endif
OpenPOWER on IntegriCloud