Deleted Added
full compact
ip6_ipsec.c (215317) ip6_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/netinet6/ip6_ipsec.c 215317 2010-11-14 20:38:11Z dim $");
31__FBSDID("$FreeBSD: head/sys/netinet6/ip6_ipsec.c 215701 2010-11-22 19:32:54Z dim $");
32
33#include "opt_inet6.h"
34#include "opt_ipsec.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>
39#include <sys/mac.h>

--- 35 unchanged lines hidden (view full) ---

75#include <netinet6/ip6_var.h>
76
77extern struct protosw inet6sw[];
78
79
80#ifdef INET6
81#ifdef IPSEC
82#ifdef IPSEC_FILTERTUNNEL
32
33#include "opt_inet6.h"
34#include "opt_ipsec.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>
39#include <sys/mac.h>

--- 35 unchanged lines hidden (view full) ---

75#include <netinet6/ip6_var.h>
76
77extern struct protosw inet6sw[];
78
79
80#ifdef INET6
81#ifdef IPSEC
82#ifdef IPSEC_FILTERTUNNEL
83STATIC_VNET_DEFINE(int, ip6_ipsec6_filtertunnel) = 1;
83static VNET_DEFINE(int, ip6_ipsec6_filtertunnel) = 1;
84#else
84#else
85STATIC_VNET_DEFINE(int, ip6_ipsec6_filtertunnel) = 0;
85static VNET_DEFINE(int, ip6_ipsec6_filtertunnel) = 0;
86#endif
87#define V_ip6_ipsec6_filtertunnel VNET(ip6_ipsec6_filtertunnel)
88
89SYSCTL_DECL(_net_inet6_ipsec6);
90SYSCTL_VNET_INT(_net_inet6_ipsec6, OID_AUTO,
91 filtertunnel, CTLFLAG_RW, &VNET_NAME(ip6_ipsec6_filtertunnel), 0,
92 "If set filter packets from an IPsec tunnel.");
93#endif /* IPSEC */

--- 291 unchanged lines hidden ---
86#endif
87#define V_ip6_ipsec6_filtertunnel VNET(ip6_ipsec6_filtertunnel)
88
89SYSCTL_DECL(_net_inet6_ipsec6);
90SYSCTL_VNET_INT(_net_inet6_ipsec6, OID_AUTO,
91 filtertunnel, CTLFLAG_RW, &VNET_NAME(ip6_ipsec6_filtertunnel), 0,
92 "If set filter packets from an IPsec tunnel.");
93#endif /* IPSEC */

--- 291 unchanged lines hidden ---