Deleted Added
full compact
in_gif.c (276148) in_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: in_gif.c,v 1.54 2001/05/14 14:02:16 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: in_gif.c,v 1.54 2001/05/14 14:02:16 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet/in_gif.c 276148 2014-12-23 16:17:37Z ae $");
33__FBSDID("$FreeBSD: head/sys/netinet/in_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>

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

62#include <netinet/ip_ecn.h>
63
64#ifdef INET6
65#include <netinet/ip6.h>
66#endif
67
68#include <net/if_gif.h>
69
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>

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

62#include <netinet/ip_ecn.h>
63
64#ifdef INET6
65#include <netinet/ip6.h>
66#endif
67
68#include <net/if_gif.h>
69
70int in_gif_output(struct ifnet *, struct mbuf *, int, uint8_t);
71int in_gif_encapcheck(const struct mbuf *, int, int, void *);
72int in_gif_attach(struct gif_softc *);
73
74static int gif_validate4(const struct ip *, struct gif_softc *,
75 struct ifnet *);
76static int in_gif_input(struct mbuf **, int *, int);
77
78extern struct domain inetdomain;
79static struct protosw in_gif_protosw = {
80 .pr_type = SOCK_RAW,
81 .pr_domain = &inetdomain,

--- 164 unchanged lines hidden ---
70static int gif_validate4(const struct ip *, struct gif_softc *,
71 struct ifnet *);
72static int in_gif_input(struct mbuf **, int *, int);
73
74extern struct domain inetdomain;
75static struct protosw in_gif_protosw = {
76 .pr_type = SOCK_RAW,
77 .pr_domain = &inetdomain,

--- 164 unchanged lines hidden ---