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:
John Hay 2006-09-05 19:20:42 +00:00
parent 23da540855
commit 80a684e083

View file

@ -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