ip_ipsec.c (215317) | ip_ipsec.c (215701) |
---|---|
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 215317 2010-11-14 20:38:11Z dim $"); | 31__FBSDID("$FreeBSD: head/sys/netinet/ip_ipsec.c 215701 2010-11-22 19:32:54Z dim $"); |
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> --- 27 unchanged lines hidden (view full) --- 67#include <netipsec/xform.h> 68#include <netipsec/key.h> 69#endif /*IPSEC*/ 70 71extern struct protosw inetsw[]; 72 73#ifdef IPSEC 74#ifdef IPSEC_FILTERTUNNEL | 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> --- 27 unchanged lines hidden (view full) --- 67#include <netipsec/xform.h> 68#include <netipsec/key.h> 69#endif /*IPSEC*/ 70 71extern struct protosw inetsw[]; 72 73#ifdef IPSEC 74#ifdef IPSEC_FILTERTUNNEL |
75STATIC_VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 1; | 75static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 1; |
76#else | 76#else |
77STATIC_VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 0; | 77static VNET_DEFINE(int, ip4_ipsec_filtertunnel) = 0; |
78#endif 79#define V_ip4_ipsec_filtertunnel VNET(ip4_ipsec_filtertunnel) 80 81SYSCTL_DECL(_net_inet_ipsec); 82SYSCTL_VNET_INT(_net_inet_ipsec, OID_AUTO, filtertunnel, 83 CTLFLAG_RW, &VNET_NAME(ip4_ipsec_filtertunnel), 0, 84 "If set filter packets from an IPsec tunnel."); 85#endif /* IPSEC */ --- 322 unchanged lines hidden --- | 78#endif 79#define V_ip4_ipsec_filtertunnel VNET(ip4_ipsec_filtertunnel) 80 81SYSCTL_DECL(_net_inet_ipsec); 82SYSCTL_VNET_INT(_net_inet_ipsec, OID_AUTO, filtertunnel, 83 CTLFLAG_RW, &VNET_NAME(ip4_ipsec_filtertunnel), 0, 84 "If set filter packets from an IPsec tunnel."); 85#endif /* IPSEC */ --- 322 unchanged lines hidden --- |