From b8a24f4403701576907cfd190f1d85de68b07d06 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Sat, 15 Aug 2015 20:34:39 +0800 Subject: [PATCH] inet6: Set rtentry properly in nd6_output() --- sys/netinet6/nd6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.41.0