From 418cc6471219814febd45ea48f4a83277e56f08f Mon Sep 17 00:00:00 2001 From: Cedric Berger Date: Mon, 2 Feb 2004 20:13:02 +0000 Subject: make the stack compile if NPF=0. ok deraadt@ markus@ --- sys/netinet6/ip6_forward.c | 5 +++-- sys/netinet6/ip6_output.c | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/netinet6') diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index 514747339c5..342d49d1b8b 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_forward.c,v 1.27 2003/08/07 09:11:53 itojun Exp $ */ +/* $OpenBSD: ip6_forward.c,v 1.28 2004/02/02 20:13:01 cedric Exp $ */ /* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */ /* @@ -60,6 +60,7 @@ #endif #ifdef IPSEC +#include #include #include #include @@ -453,7 +454,7 @@ ip6_forward(m, srcrt) } } -#if NPF > 0 +#if NPF > 0 || defined(IPSEC) senderr: #endif if (mcopy == NULL) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 15822664b40..eeada73d0c2 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_output.c,v 1.80 2003/12/10 03:30:21 itojun Exp $ */ +/* $OpenBSD: ip6_output.c,v 1.81 2004/02/02 20:13:01 cedric Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -92,6 +92,7 @@ #endif #ifdef IPSEC +#include #include #include #include -- cgit v1.2.3