Deleted Added
full compact
in6_gif.c (276148) in6_gif.c (276215)
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

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 * $KAME: in6_gif.c,v 1.49 2001/05/14 14:02:17 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
3 * 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

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

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 * $KAME: in6_gif.c,v 1.49 2001/05/14 14:02:17 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/in6_gif.c 276148 2014-12-23 16:17:37Z ae $");
33__FBSDID("$FreeBSD: head/sys/netinet6/in6_gif.c 276215 2014-12-25 21:32:37Z ae $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/lock.h>
40#include <sys/rmlock.h>
41#include <sys/systm.h>

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

76#define GIF_HLIM 30
77static VNET_DEFINE(int, ip6_gif_hlim) = GIF_HLIM;
78#define V_ip6_gif_hlim VNET(ip6_gif_hlim)
79
80SYSCTL_DECL(_net_inet6_ip6);
81SYSCTL_INT(_net_inet6_ip6, IPV6CTL_GIF_HLIM, gifhlim, CTLFLAG_VNET | CTLFLAG_RW,
82 &VNET_NAME(ip6_gif_hlim), 0, "");
83
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37
38#include <sys/param.h>
39#include <sys/lock.h>
40#include <sys/rmlock.h>
41#include <sys/systm.h>

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

76#define GIF_HLIM 30
77static VNET_DEFINE(int, ip6_gif_hlim) = GIF_HLIM;
78#define V_ip6_gif_hlim VNET(ip6_gif_hlim)
79
80SYSCTL_DECL(_net_inet6_ip6);
81SYSCTL_INT(_net_inet6_ip6, IPV6CTL_GIF_HLIM, gifhlim, CTLFLAG_VNET | CTLFLAG_RW,
82 &VNET_NAME(ip6_gif_hlim), 0, "");
83
84int in6_gif_output(struct ifnet *, struct mbuf *, int, uint8_t);
85int in6_gif_encapcheck(const struct mbuf *, int, int, void *);
86int in6_gif_attach(struct gif_softc *);
87
88static int gif_validate6(const struct ip6_hdr *, struct gif_softc *,
89 struct ifnet *);
90static int in6_gif_input(struct mbuf **, int *, int);
91
92extern struct domain inet6domain;
93static struct protosw in6_gif_protosw = {
94 .pr_type = SOCK_RAW,
95 .pr_domain = &inet6domain,

--- 159 unchanged lines hidden ---
84static int gif_validate6(const struct ip6_hdr *, struct gif_softc *,
85 struct ifnet *);
86static int in6_gif_input(struct mbuf **, int *, int);
87
88extern struct domain inet6domain;
89static struct protosw in6_gif_protosw = {
90 .pr_type = SOCK_RAW,
91 .pr_domain = &inet6domain,

--- 159 unchanged lines hidden ---