ip_ipsec.c (195699) | ip_ipsec.c (195727) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/netinet/ip_ipsec.c 195699 2009-07-14 22:48:30Z rwatson $"); | 31__FBSDID("$FreeBSD: head/sys/netinet/ip_ipsec.c 195727 2009-07-16 21:13:04Z rwatson $"); |
32 33#include "opt_ipsec.h" 34#include "opt_sctp.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/errno.h> 39#include <sys/kernel.h> --- 32 unchanged lines hidden (view full) --- 72extern struct protosw inetsw[]; 73 74#ifdef IPSEC 75#ifdef IPSEC_FILTERTUNNEL 76static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 1; 77#else 78static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 0; 79#endif | 32 33#include "opt_ipsec.h" 34#include "opt_sctp.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/errno.h> 39#include <sys/kernel.h> --- 32 unchanged lines hidden (view full) --- 72extern struct protosw inetsw[]; 73 74#ifdef IPSEC 75#ifdef IPSEC_FILTERTUNNEL 76static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 1; 77#else 78static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 0; 79#endif |
80#define V_ip4_ipsec_filtertunnel VNET_GET(ip4_ipsec_filtertunnel) | 80#define V_ip4_ipsec_filtertunnel VNET(ip4_ipsec_filtertunnel) |
81 82SYSCTL_DECL(_net_inet_ipsec); 83SYSCTL_VNET_INT(_net_inet_ipsec, OID_AUTO, filtertunnel, 84 CTLFLAG_RW, &VNET_NAME(ip4_ipsec_filtertunnel), 0, 85 "If set filter packets from an IPsec tunnel."); 86#endif /* IPSEC */ 87 88/* --- 335 unchanged lines hidden --- | 81 82SYSCTL_DECL(_net_inet_ipsec); 83SYSCTL_VNET_INT(_net_inet_ipsec, OID_AUTO, filtertunnel, 84 CTLFLAG_RW, &VNET_NAME(ip4_ipsec_filtertunnel), 0, 85 "If set filter packets from an IPsec tunnel."); 86#endif /* IPSEC */ 87 88/* --- 335 unchanged lines hidden --- |