sync with OpenBSD -current
This commit is contained in:
parent
ff77f1c0ed
commit
b8cf0a282a
19 changed files with 237 additions and 127 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ip6_forward.c,v 1.119 2024/06/20 19:25:42 bluhm Exp $ */
|
||||
/* $OpenBSD: ip6_forward.c,v 1.120 2024/07/04 12:50:08 bluhm Exp $ */
|
||||
/* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -315,6 +315,15 @@ reroute:
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef IPSEC
|
||||
if (ISSET(flags, IPV6_FORWARDING) &&
|
||||
ISSET(flags, IPV6_FORWARDING_IPSEC) &&
|
||||
!ISSET(m->m_pkthdr.ph_tagsset, PACKET_TAG_IPSEC_IN_DONE)) {
|
||||
error = EHOSTUNREACH;
|
||||
goto senderr;
|
||||
}
|
||||
#endif
|
||||
|
||||
error = if_output_tso(ifp, &m, dst, rt, ifp->if_mtu);
|
||||
if (error)
|
||||
ip6stat_inc(ip6s_cantforward);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue