summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ecn.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_ecn.h')
-rw-r--r--sys/netinet/ip_ecn.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/netinet/ip_ecn.h b/sys/netinet/ip_ecn.h
index 7f6f4f529ea..ffe610b1eee 100644
--- a/sys/netinet/ip_ecn.h
+++ b/sys/netinet/ip_ecn.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ecn.h,v 1.2 2001/02/16 08:48:04 itojun Exp $ */
+/* $OpenBSD: ip_ecn.h,v 1.3 2001/06/09 07:03:41 angelos Exp $ */
/* $KAME: ip_ecn.h,v 1.5 2000/03/27 04:58:38 sumikawa Exp $ */
/*
@@ -30,26 +30,25 @@
* SUCH DAMAGE.
*
*/
+
+#ifndef _NETINET_IP_ECN_H_
+#define _NETINET_IP_ECN_H_
+
/*
* ECN consideration on tunnel ingress/egress operation.
* http://www.aciri.org/floyd/papers/draft-ipsec-ecn-00.txt
*/
-#if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__NetBSD__)
-#if defined(_KERNEL) && !defined(_LKM)
-#include "opt_inet.h"
-#endif
-#endif
-
#define ECN_ALLOWED 1 /* ECN allowed */
#define ECN_FORBIDDEN 0 /* ECN forbidden */
#define ECN_NOCARE (-1) /* no consideration to ECN */
-#if defined(KERNEL) || defined(_KERNEL)
+#if defined(_KERNEL)
extern void ip_ecn_ingress __P((int, u_int8_t *, u_int8_t *));
extern void ip_ecn_egress __P((int, u_int8_t *, u_int8_t *));
#ifdef INET6
extern void ip6_ecn_ingress __P((int, u_int32_t *, u_int32_t *));
extern void ip6_ecn_egress __P((int, u_int32_t *, u_int32_t *));
-#endif
-#endif
+#endif /* INET6 */
+#endif /* _KERNEL */
+#endif /* _NETINET_IP_ECN_H_ */