Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2012 17:02:07 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244439 - head/sys/netinet6
Message-ID:  <201212191702.qBJH271Q042150@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212191702.qBJH271Q042150>