sys/netinet6/ip6_ecn.h is reportedly a FreeBSD-ism; NetBSD has
prototypes for the IPv6 ECN ingress/egress functions in sys/netinet/ip_ecn.h, inside an #ifdef INET6 wrapper. So, wrap sys/netipsec ocurrences of #include <netinet6/ip6_ecn.h> in #ifdef __FreeBSD__/#endif, until both camps can agree on this teensy little piece of namespace. Affects: ipsec_output.c xform_ah.c xform_esp.c xform_ipip.c
This commit is contained in:
parent
80b12afa54
commit
60f87b2f99
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ipsec_output.c,v 1.11 2004/03/16 22:58:54 jonathan Exp $ */
|
||||
/* $NetBSD: ipsec_output.c,v 1.12 2004/03/17 00:21:43 jonathan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.11 2004/03/16 22:58:54 jonathan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.12 2004/03/17 00:21:43 jonathan Exp $");
|
||||
|
||||
/*
|
||||
* IPsec output processing.
|
||||
|
@ -59,7 +59,9 @@ __KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.11 2004/03/16 22:58:54 jonathan E
|
|||
#include <netinet/in_var.h>
|
||||
#include <netinet/ip_ecn.h>
|
||||
#ifdef INET6
|
||||
#include <netinet6/ip6_ecn.h>
|
||||
# ifdef __FreeBSD__
|
||||
# include <netinet6/ip6_ecn.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <netinet/ip6.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xform_ah.c,v 1.5 2003/12/12 21:36:32 thorpej Exp $ */
|
||||
/* $NetBSD: xform_ah.c,v 1.6 2004/03/17 00:21:43 jonathan Exp $ */
|
||||
/* $FreeBSD: src/sys/netipsec/xform_ah.c,v 1.1.4.1 2003/01/24 05:11:36 sam Exp $ */
|
||||
/* $OpenBSD: ip_ah.c,v 1.63 2001/06/26 06:18:58 angelos Exp $ */
|
||||
/*
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.5 2003/12/12 21:36:32 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.6 2004/03/17 00:21:43 jonathan Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#ifdef __FreeBSD__
|
||||
|
@ -71,7 +71,9 @@ __KERNEL_RCSID(0, "$NetBSD: xform_ah.c,v 1.5 2003/12/12 21:36:32 thorpej Exp $")
|
|||
#ifdef INET6
|
||||
#include <netinet6/ip6_var.h>
|
||||
#include <netipsec/ipsec6.h>
|
||||
#include <netinet6/ip6_ecn.h>
|
||||
# ifdef __FreeBSD__
|
||||
# include <netinet6/ip6_ecn.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <netipsec/key.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xform_esp.c,v 1.4 2003/10/06 22:05:15 tls Exp $ */
|
||||
/* $NetBSD: xform_esp.c,v 1.5 2004/03/17 00:21:43 jonathan Exp $ */
|
||||
/* $FreeBSD: src/sys/netipsec/xform_esp.c,v 1.2.2.1 2003/01/24 05:11:36 sam Exp $ */
|
||||
/* $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.4 2003/10/06 22:05:15 tls Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.5 2004/03/17 00:21:43 jonathan Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
#ifdef __FreeBSD__
|
||||
|
@ -74,7 +74,9 @@ __KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.4 2003/10/06 22:05:15 tls Exp $");
|
|||
#ifdef INET6
|
||||
#include <netinet6/ip6_var.h>
|
||||
#include <netipsec/ipsec6.h>
|
||||
#include <netinet6/ip6_ecn.h>
|
||||
# ifdef __FreeBSD__
|
||||
# include <netinet6/ip6_ecn.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <netipsec/key.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xform_ipip.c,v 1.8 2004/01/16 11:06:27 scw Exp $ */
|
||||
/* $NetBSD: xform_ipip.c,v 1.9 2004/03/17 00:21:43 jonathan Exp $ */
|
||||
/* $FreeBSD: src/sys/netipsec/xform_ipip.c,v 1.3.2.1 2003/01/24 05:11:36 sam Exp $ */
|
||||
/* $OpenBSD: ip_ipip.c,v 1.25 2002/06/10 18:04:55 itojun Exp $ */
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_ipip.c,v 1.8 2004/01/16 11:06:27 scw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: xform_ipip.c,v 1.9 2004/03/17 00:21:43 jonathan Exp $");
|
||||
|
||||
/*
|
||||
* IP-inside-IP processing
|
||||
|
@ -86,7 +86,9 @@ __KERNEL_RCSID(0, "$NetBSD: xform_ipip.c,v 1.8 2004/01/16 11:06:27 scw Exp $");
|
|||
#ifdef INET6
|
||||
#include <netinet/ip6.h>
|
||||
#include <netipsec/ipsec6.h>
|
||||
#include <netinet6/ip6_ecn.h>
|
||||
# ifdef __FreeBSD__
|
||||
# include <netinet6/ip6_ecn.h>
|
||||
# endif
|
||||
#include <netinet6/in6_var.h>
|
||||
#include <netinet6/ip6protosw.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue