Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 20:36:34 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r365277 - in stable: 11/sys/net 11/sys/netipsec 12/sys/net 12/sys/netipsec
Message-ID:  <202009022036.082KaYQQ092828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Sep  2 20:36:33 2020
New Revision: 365277
URL: https://svnweb.freebsd.org/changeset/base/365277

Log:
  MFC 361633: Consistently include opt_ipsec.h for consumers of <netipsec/ipsec.h>.
  
  This fixes ipsec.ko to include all of IPSEC_DEBUG.

Modified:
  stable/11/sys/net/if_enc.c
  stable/11/sys/net/if_ipsec.c
  stable/11/sys/netipsec/ipsec.h
  stable/11/sys/netipsec/ipsec_mbuf.c
  stable/11/sys/netipsec/xform_ah.c
  stable/11/sys/netipsec/xform_esp.c
  stable/11/sys/netipsec/xform_ipcomp.c
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/12/sys/net/if_enc.c
  stable/12/sys/net/if_ipsec.c
  stable/12/sys/netipsec/ipsec.h
  stable/12/sys/netipsec/ipsec_mbuf.c
  stable/12/sys/netipsec/xform_ah.c
  stable/12/sys/netipsec/xform_esp.c
  stable/12/sys/netipsec/xform_ipcomp.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/11/sys/net/if_enc.c
==============================================================================
--- stable/11/sys/net/if_enc.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/net/if_enc.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -30,6 +30,7 @@
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
+#include "opt_ipsec.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>

Modified: stable/11/sys/net/if_ipsec.c
==============================================================================
--- stable/11/sys/net/if_ipsec.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/net/if_ipsec.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$");
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
+#include "opt_ipsec.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>

Modified: stable/11/sys/netipsec/ipsec.h
==============================================================================
--- stable/11/sys/netipsec/ipsec.h	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/netipsec/ipsec.h	Wed Sep  2 20:36:33 2020	(r365277)
@@ -37,11 +37,6 @@
 #ifndef _NETIPSEC_IPSEC_H_
 #define _NETIPSEC_IPSEC_H_
 
-#if defined(_KERNEL) && !defined(_LKM) && !defined(KLD_MODULE)
-#include "opt_inet.h"
-#include "opt_ipsec.h"
-#endif
-
 #include <net/pfkeyv2.h>
 #include <netipsec/keydb.h>
 

Modified: stable/11/sys/netipsec/ipsec_mbuf.c
==============================================================================
--- stable/11/sys/netipsec/ipsec_mbuf.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/netipsec/ipsec_mbuf.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -30,6 +30,8 @@
  * IPsec-specific mbuf routines.
  */
 
+#include "opt_ipsec.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/malloc.h>

Modified: stable/11/sys/netipsec/xform_ah.c
==============================================================================
--- stable/11/sys/netipsec/xform_ah.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/netipsec/xform_ah.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -38,6 +38,7 @@
  */
 #include "opt_inet.h"
 #include "opt_inet6.h"
+#include "opt_ipsec.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>

Modified: stable/11/sys/netipsec/xform_esp.c
==============================================================================
--- stable/11/sys/netipsec/xform_esp.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/netipsec/xform_esp.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -37,6 +37,7 @@
  */
 #include "opt_inet.h"
 #include "opt_inet6.h"
+#include "opt_ipsec.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>

Modified: stable/11/sys/netipsec/xform_ipcomp.c
==============================================================================
--- stable/11/sys/netipsec/xform_ipcomp.c	Wed Sep  2 20:04:26 2020	(r365276)
+++ stable/11/sys/netipsec/xform_ipcomp.c	Wed Sep  2 20:36:33 2020	(r365277)
@@ -31,6 +31,7 @@
 /* IP payload compression protocol (IPComp), see RFC 2393 */
 #include "opt_inet.h"
 #include "opt_inet6.h"
+#include "opt_ipsec.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009022036.082KaYQQ092828>