Deleted Added
full compact
ip6_forward.c (196019) ip6_forward.c (197952)
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 196019 2009-08-01 19:26:27Z rwatson $");
33__FBSDID("$FreeBSD: head/sys/netinet6/ip6_forward.c 197952 2009-10-11 05:59:43Z julian $");
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipsec.h"
38#include "opt_ipstealth.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>

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

546 /*
547 * clear embedded scope identifiers if necessary.
548 * in6_clearscope will touch the addresses only when necessary.
549 */
550 in6_clearscope(&ip6->ip6_src);
551 in6_clearscope(&ip6->ip6_dst);
552
553 /* Jump over all PFIL processing if hooks are not active. */
34
35#include "opt_inet.h"
36#include "opt_inet6.h"
37#include "opt_ipsec.h"
38#include "opt_ipstealth.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>

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

546 /*
547 * clear embedded scope identifiers if necessary.
548 * in6_clearscope will touch the addresses only when necessary.
549 */
550 in6_clearscope(&ip6->ip6_src);
551 in6_clearscope(&ip6->ip6_dst);
552
553 /* Jump over all PFIL processing if hooks are not active. */
554 if (!PFIL_HOOKED(&inet6_pfil_hook))
554 if (!PFIL_HOOKED(&V_inet6_pfil_hook))
555 goto pass;
556
557 /* Run through list of hooks for output packets. */
555 goto pass;
556
557 /* Run through list of hooks for output packets. */
558 error = pfil_run_hooks(&inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT, NULL);
558 error = pfil_run_hooks(&V_inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT, NULL);
559 if (error != 0)
560 goto senderr;
561 if (m == NULL)
562 goto freecopy;
563 ip6 = mtod(m, struct ip6_hdr *);
564
565pass:
566 error = nd6_output(rt->rt_ifp, origifp, m, dst, rt);

--- 58 unchanged lines hidden ---
559 if (error != 0)
560 goto senderr;
561 if (m == NULL)
562 goto freecopy;
563 ip6 = mtod(m, struct ip6_hdr *);
564
565pass:
566 error = nd6_output(rt->rt_ifp, origifp, m, dst, rt);

--- 58 unchanged lines hidden ---