svn commit: r310395 - projects/ipsec/sys/netinet

Andrey V. Elsukov ae at FreeBSD.org
Thu Dec 22 13:50:35 UTC 2016


Author: ae
Date: Thu Dec 22 13:50:34 2016
New Revision: 310395
URL: https://svnweb.freebsd.org/changeset/base/310395

Log:
  Add IPSEC_SUPPORT option to in_pcb.c

Modified:
  projects/ipsec/sys/netinet/in_pcb.c

Modified: projects/ipsec/sys/netinet/in_pcb.c
==============================================================================
--- projects/ipsec/sys/netinet/in_pcb.c	Thu Dec 22 13:48:28 2016	(r310394)
+++ projects/ipsec/sys/netinet/in_pcb.c	Thu Dec 22 13:50:34 2016	(r310395)
@@ -96,11 +96,7 @@ __FBSDID("$FreeBSD$");
 #include <netinet6/ip6_var.h>
 #endif /* INET6 */
 
-
-#ifdef IPSEC
-#include <netipsec/ipsec.h>
-#include <netipsec/key.h>
-#endif /* IPSEC */
+#include <netipsec/ipsec_support.h>
 
 #include <security/mac/mac_framework.h>
 
@@ -303,7 +299,7 @@ in_pcballoc(struct socket *so, struct in
 		goto out;
 	mac_inpcb_create(so, inp);
 #endif
-#ifdef IPSEC
+#if defined(IPSEC) || defined(IPSEC_SUPPORT)
 	error = ipsec_init_pcbpolicy(inp);
 	if (error != 0) {
 #ifdef MAC
@@ -1278,7 +1274,7 @@ in_pcbfree(struct inpcb *inp)
 	INP_WLOCK_ASSERT(inp);
 
 	/* XXXRW: Do as much as possible here. */
-#ifdef IPSEC
+#if defined(IPSEC) || defined(IPSEC_SUPPORT)
 	if (inp->inp_sp != NULL)
 		ipsec_delete_pcbpolicy(inp);
 #endif


More information about the svn-src-projects mailing list