mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use net.inet6.ip6.redirect / ip6_sendredirects as part of the decision
to generate icmp6 redirects. Now it is possible to switch redirects off. MFC after: 1 week
This commit is contained in:
parent
23da540855
commit
80a684e083
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ ip6_forward(m, srcrt)
|
|||
* Also, don't send redirect if forwarding using a route
|
||||
* modified by a redirect.
|
||||
*/
|
||||
if (rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt &&
|
||||
if (ip6_sendredirects && rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt &&
|
||||
#ifdef IPSEC
|
||||
!ipsecrt &&
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue