Date: Tue, 17 May 2016 14:06:55 +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: r300054 - head/sys/netinet6 Message-ID: <201605171406.u4HE6tkJ057164@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Tue May 17 14:06:55 2016 New Revision: 300054 URL: https://svnweb.freebsd.org/changeset/base/300054 Log: Call RO_RTFREE() when we have detected the change of destination address, otherwise the old route will be used with new destination. MFC after: 1 week Modified: head/sys/netinet6/ip6_output.c Modified: head/sys/netinet6/ip6_output.c ============================================================================== --- head/sys/netinet6/ip6_output.c Tue May 17 14:02:05 2016 (r300053) +++ head/sys/netinet6/ip6_output.c Tue May 17 14:06:55 2016 (r300054) @@ -826,8 +826,10 @@ again: #endif error = netisr_queue(NETISR_IPV6, m); goto done; - } else + } else { + RO_RTFREE(ro); needfiblookup = 1; /* Redo the routing table lookup. */ + } } /* See if fib was changed by packet filter. */ if (fibnum != M_GETFIB(m)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605171406.u4HE6tkJ057164>