Deleted Added
full compact
ip6_forward.c (95023) ip6_forward.c (105199)
1/* $FreeBSD: head/sys/netinet6/ip6_forward.c 95023 2002-04-19 04:46:24Z suz $ */
1/* $FreeBSD: head/sys/netinet6/ip6_forward.c 105199 2002-10-16 02:25:05Z sam $ */
2/* $KAME: ip6_forward.c,v 1.69 2001/05/17 03:48:30 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

69#ifdef IPSEC
70#include <netinet6/ipsec.h>
71#ifdef INET6
72#include <netinet6/ipsec6.h>
73#endif
74#include <netkey/key.h>
75#endif /* IPSEC */
76
2/* $KAME: ip6_forward.c,v 1.69 2001/05/17 03:48:30 itojun Exp $ */
3
4/*
5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

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

69#ifdef IPSEC
70#include <netinet6/ipsec.h>
71#ifdef INET6
72#include <netinet6/ipsec6.h>
73#endif
74#include <netkey/key.h>
75#endif /* IPSEC */
76
77#ifdef FAST_IPSEC
78#include <netipsec/ipsec.h>
79#include <netipsec/ipsec6.h>
80#include <netipsec/key.h>
81#define IPSEC
82#endif /* FAST_IPSEC */
83
77#include <netinet6/ip6_fw.h>
78
79#include <net/net_osdep.h>
80
81#include <netinet6/ip6protosw.h>
82
83struct route_in6 ip6_forward_rt;
84

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

119 /*
120 * Check AH/ESP integrity.
121 */
122 /*
123 * Don't increment ip6s_cantforward because this is the check
124 * before forwarding packet actually.
125 */
126 if (ipsec6_in_reject(m, NULL)) {
84#include <netinet6/ip6_fw.h>
85
86#include <net/net_osdep.h>
87
88#include <netinet6/ip6protosw.h>
89
90struct route_in6 ip6_forward_rt;
91

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

126 /*
127 * Check AH/ESP integrity.
128 */
129 /*
130 * Don't increment ip6s_cantforward because this is the check
131 * before forwarding packet actually.
132 */
133 if (ipsec6_in_reject(m, NULL)) {
134#if !defined(FAST_IPSEC)
127 ipsec6stat.in_polvio++;
135 ipsec6stat.in_polvio++;
136#endif
128 m_freem(m);
129 return;
130 }
131#endif /* IPSEC */
132
133 /*
134 * Do not forward packets to multicast destination (should be handled
135 * by ip6_mforward().

--- 451 unchanged lines hidden ---
137 m_freem(m);
138 return;
139 }
140#endif /* IPSEC */
141
142 /*
143 * Do not forward packets to multicast destination (should be handled
144 * by ip6_mforward().

--- 451 unchanged lines hidden ---