From: Sepherosa Ziehau Date: Sat, 15 Aug 2015 12:34:39 +0000 (+0800) Subject: inet6: Set rtentry properly in nd6_output() X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/b8a24f4403701576907cfd190f1d85de68b07d06 inet6: Set rtentry properly in nd6_output() --- diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 71acc89ad9..6a6abbd264 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1854,7 +1854,7 @@ nd6_output(struct ifnet *ifp, struct ifnet *origifp, struct mbuf *m, goto sendpkt; /* - * next hop determination. This routine is derived from ether_outpout. + * Next hop determination. This routine is derived from rt_llroute. */ if (rt != NULL) { if (!(rt->rt_flags & RTF_UP)) { @@ -1902,6 +1902,7 @@ nd6_output(struct ifnet *ifp, struct ifnet *origifp, struct mbuf *m, if (rt->rt_gwroute == NULL) gotoerr(EHOSTUNREACH); } + rt = rt->rt_gwroute; } }