Deleted Added
full compact
ip6_forward.c (267220) ip6_forward.c (269699)
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: ip6_forward.c,v 1.69 2001/05/17 03:48:30 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: ip6_forward.c,v 1.69 2001/05/17 03:48:30 itojun Exp $
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/netinet6/ip6_forward.c 267220 2014-06-08 09:08:51Z ae $");
33__FBSDID("$FreeBSD: head/sys/netinet6/ip6_forward.c 269699 2014-08-08 01:57:15Z kevlo $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipfw.h"
38#include "opt_ipsec.h"
39#include "opt_ipstealth.h"
40
41#include <sys/param.h>

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

71#include <netinet/in_pcb.h>
72
73#ifdef IPSEC
74#include <netipsec/ipsec.h>
75#include <netipsec/ipsec6.h>
76#include <netipsec/key.h>
77#endif /* IPSEC */
78
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipfw.h"
38#include "opt_ipsec.h"
39#include "opt_ipstealth.h"
40
41#include <sys/param.h>

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

71#include <netinet/in_pcb.h>
72
73#ifdef IPSEC
74#include <netipsec/ipsec.h>
75#include <netipsec/ipsec6.h>
76#include <netipsec/key.h>
77#endif /* IPSEC */
78
79#include <netinet6/ip6protosw.h>
80
81/*
82 * Forward a packet. If some error occurs return the sender
83 * an icmp packet. Note we can't always generate a meaningful
84 * icmp message because icmp doesn't have a large enough repertoire
85 * of codes and types.
86 *
87 * If not forwarding, just drop the packet. This could be confusing
88 * if ipforwarding was zero but some routing protocol was advancing

--- 565 unchanged lines hidden ---
79/*
80 * Forward a packet. If some error occurs return the sender
81 * an icmp packet. Note we can't always generate a meaningful
82 * icmp message because icmp doesn't have a large enough repertoire
83 * of codes and types.
84 *
85 * If not forwarding, just drop the packet. This could be confusing
86 * if ipforwarding was zero but some routing protocol was advancing

--- 565 unchanged lines hidden ---