Deleted Added
full compact
if_gre.c (103344) if_gre.c (103394)
1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */
1/* $NetBSD: if_gre.c,v 1.42 2002/08/14 00:23:27 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_gre.c 103344 2002-09-15 13:54:12Z bde $ */
2/* $FreeBSD: head/sys/net/if_gre.c 103394 2002-09-16 10:10:18Z bde $ */
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *

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

42 * See RFC 1701 and 1702 for more details.
43 * If_gre is compatible with Cisco GRE tunnels, so you can
44 * have a NetBSD box as the other end of a tunnel interface of a Cisco
45 * router. See gre(4) for more details.
46 * Also supported: IP in IP encaps (proto 55) as of RFC 2004
47 */
48
49#include <sys/cdefs.h>
3
4/*
5 * Copyright (c) 1998 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation
9 * by Heiko W.Rupp <hwr@pilhuhn.de>
10 *

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

42 * See RFC 1701 and 1702 for more details.
43 * If_gre is compatible with Cisco GRE tunnels, so you can
44 * have a NetBSD box as the other end of a tunnel interface of a Cisco
45 * router. See gre(4) for more details.
46 * Also supported: IP in IP encaps (proto 55) as of RFC 2004
47 */
48
49#include <sys/cdefs.h>
50__RCSID("@(#) $FreeBSD: head/sys/net/if_gre.c 103344 2002-09-15 13:54:12Z bde $");
50__RCSID("@(#) $FreeBSD: head/sys/net/if_gre.c 103394 2002-09-16 10:10:18Z bde $");
51
51
52#include "opt_atalk.h"
52#include "opt_inet.h"
53#include "opt_ns.h"
54#include "bpf.h"
55
56#include <sys/param.h>
57#include <sys/kernel.h>
58#include <sys/malloc.h>
59#include <sys/mbuf.h>
53#include "opt_inet.h"
54#include "opt_ns.h"
55#include "bpf.h"
56
57#include <sys/param.h>
58#include <sys/kernel.h>
59#include <sys/malloc.h>
60#include <sys/mbuf.h>
60#include <sys/proc.h>
61#include <sys/protosw.h>
62#include <sys/socket.h>
63#include <sys/sockio.h>
61#include <sys/protosw.h>
62#include <sys/socket.h>
63#include <sys/sockio.h>
64#include <sys/queue.h>
65#include <sys/sysctl.h>
66#include <sys/systm.h>
67
64#include <sys/sysctl.h>
65#include <sys/systm.h>
66
68#include <machine/cpu.h>
69
70#include <net/ethernet.h>
71#include <net/if.h>
72#include <net/if_types.h>
67#include <net/ethernet.h>
68#include <net/if.h>
69#include <net/if_types.h>
73#include <net/netisr.h>
74#include <net/route.h>
75
76#ifdef INET
77#include <netinet/in.h>
78#include <netinet/in_systm.h>
79#include <netinet/in_var.h>
80#include <netinet/ip.h>
81#include <netinet/ip_gre.h>
82#include <netinet/ip_var.h>
83#include <netinet/ip_encap.h>
84#else
85#error "Huh? if_gre without inet?"
86#endif
87
70#include <net/route.h>
71
72#ifdef INET
73#include <netinet/in.h>
74#include <netinet/in_systm.h>
75#include <netinet/in_var.h>
76#include <netinet/ip.h>
77#include <netinet/ip_gre.h>
78#include <netinet/ip_var.h>
79#include <netinet/ip_encap.h>
80#else
81#error "Huh? if_gre without inet?"
82#endif
83
88#ifdef NS
89#include <netns/ns.h>
90#include <netns/ns_if.h>
91#endif
92
93#ifdef NETATALK
94#include <netatalk/at.h>
95#include <netatalk/at_var.h>
96#include <netatalk/at_extern.h>
97#endif
98
99#if NBPF > 0
84#if NBPF > 0
100#include <sys/time.h>
101#include <net/bpf.h>
102#endif
103
104#include <net/net_osdep.h>
105#include <net/if_gre.h>
106
107/*
108 * It is not easy to calculate the right value for a GRE MTU.

--- 676 unchanged lines hidden ---
85#include <net/bpf.h>
86#endif
87
88#include <net/net_osdep.h>
89#include <net/if_gre.h>
90
91/*
92 * It is not easy to calculate the right value for a GRE MTU.

--- 676 unchanged lines hidden ---