The selectroute functions does own account of EHOSTUNREACH errors,
no need to do it twice. MFC after: 1 week
This commit is contained in:
parent
6b926c8f45
commit
61d88f3421
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244439
@ -645,14 +645,6 @@ skip_ipsec2:;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user