version 1.108, 2011/05/03 18:28:45 |
version 1.109, 2011/12/19 11:59:58 |
Line 97 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 97 __KERNEL_RCSID(0, "$NetBSD$"); |
|
#include <netinet6/scope6_var.h> |
#include <netinet6/scope6_var.h> |
#include <netinet6/raw_ip6.h> |
#include <netinet6/raw_ip6.h> |
|
|
#ifdef IPSEC |
#ifdef KAME_IPSEC |
#include <netinet6/ipsec.h> |
#include <netinet6/ipsec.h> |
#include <netinet6/ipsec_private.h> |
#include <netinet6/ipsec_private.h> |
#endif /* IPSEC */ |
#endif /* KAME_IPSEC */ |
|
|
#ifdef FAST_IPSEC |
#ifdef FAST_IPSEC |
#include <netipsec/ipsec.h> |
#include <netipsec/ipsec.h> |
Line 206 rip6_input(struct mbuf **mp, int *offp, |
|
Line 206 rip6_input(struct mbuf **mp, int *offp, |
|
if (last) { |
if (last) { |
struct mbuf *n; |
struct mbuf *n; |
|
|
#ifdef IPSEC |
#ifdef KAME_IPSEC |
/* |
/* |
* Check AH/ESP integrity. |
* Check AH/ESP integrity. |
*/ |
*/ |
Line 214 rip6_input(struct mbuf **mp, int *offp, |
|
Line 214 rip6_input(struct mbuf **mp, int *offp, |
|
IPSEC6_STATINC(IPSEC_STAT_IN_INVAL); |
IPSEC6_STATINC(IPSEC_STAT_IN_INVAL); |
/* do not inject data into pcb */ |
/* do not inject data into pcb */ |
} else |
} else |
#endif /* IPSEC */ |
#endif /* KAME_IPSEC */ |
#ifdef FAST_IPSEC |
#ifdef FAST_IPSEC |
/* |
/* |
* Check AH/ESP integrity |
* Check AH/ESP integrity |
Line 240 rip6_input(struct mbuf **mp, int *offp, |
|
Line 240 rip6_input(struct mbuf **mp, int *offp, |
|
} |
} |
last = in6p; |
last = in6p; |
} |
} |
#ifdef IPSEC |
#ifdef KAME_IPSEC |
/* |
/* |
* Check AH/ESP integrity. |
* Check AH/ESP integrity. |
*/ |
*/ |
Line 250 rip6_input(struct mbuf **mp, int *offp, |
|
Line 250 rip6_input(struct mbuf **mp, int *offp, |
|
IP6_STATDEC(IP6_STAT_DELIVERED); |
IP6_STATDEC(IP6_STAT_DELIVERED); |
/* do not inject data into pcb */ |
/* do not inject data into pcb */ |
} else |
} else |
#endif /* IPSEC */ |
#endif /* KAME_IPSEC */ |
#ifdef FAST_IPSEC |
#ifdef FAST_IPSEC |
if (last && ipsec6_in_reject(m, last)) { |
if (last && ipsec6_in_reject(m, last)) { |
m_freem(m); |
m_freem(m); |