diff options
author | ae <ae@FreeBSD.org> | 2012-12-19 17:02:07 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2012-12-19 17:02:07 +0000 |
commit | e0bd011045b66385a32feff04598a9123fa3d3d2 (patch) | |
tree | 321cbe161e37fcefd8c3b6848d8db0b43e4628cc /sys/netinet6 | |
parent | da3764e4922011e17d3e1ea0f7bcca3d63ff72bd (diff) | |
download | FreeBSD-src-e0bd011045b66385a32feff04598a9123fa3d3d2.zip FreeBSD-src-e0bd011045b66385a32feff04598a9123fa3d3d2.tar.gz |
The selectroute functions does own account of EHOSTUNREACH errors,
no need to do it twice.
MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index f4a0d78..a76bfed 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -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; |