svn commit: r244439 - head/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Wed Dec 19 17:02:08 UTC 2012
Author: ae
Date: Wed Dec 19 17:02:07 2012
New Revision: 244439
URL: http://svnweb.freebsd.org/changeset/base/244439
Log:
The selectroute functions does own account of EHOSTUNREACH errors,
no need to do it twice.
MFC after: 1 week
Modified:
head/sys/netinet6/ip6_output.c
Modified: head/sys/netinet6/ip6_output.c
==============================================================================
--- head/sys/netinet6/ip6_output.c Wed Dec 19 16:37:05 2012 (r244438)
+++ head/sys/netinet6/ip6_output.c Wed Dec 19 17:02:07 2012 (r244439)
@@ -645,14 +645,6 @@ again:
ifp = ro->ro_rt->rt_ifp;
} else if ((error = in6_selectroute_fib(&dst_sa, opt, im6o, ro,
&ifp, &rt, inp ? inp->inp_inc.inc_fibnum : M_GETFIB(m))) != 0) {
- switch (error) {
- case EHOSTUNREACH:
- V_ip6stat.ip6s_noroute++;
- break;
- case EADDRNOTAVAIL:
- default:
- break; /* XXX statistics? */
- }
if (ifp != NULL)
in6_ifstat_inc(ifp, ifs6_out_discard);
goto bad;
More information about the svn-src-head
mailing list