From: Roy Marples Date: Sat, 6 Aug 2016 23:00:50 +0000 (+0000) Subject: Fix the gateway to the route interface for IPv6 routes. X-Git-Tag: v6.11.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a0f09c8f2bbceeb72132fc9373767e727727bc;p=thirdparty%2Fdhcpcd.git Fix the gateway to the route interface for IPv6 routes. Thanks to Guy Yur. --- diff --git a/if-bsd.c b/if-bsd.c index bc473461..56ef1fd1 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -1143,8 +1143,10 @@ if_route6(unsigned char cmd, const struct rt6 *rt) if (IN6_IS_ADDR_UNSPECIFIED(&rt->gate)) g = NULL; - else + else { g = &gate; + ifa_scope(g, rt->iface->index); + } return if_rtmsg(cmd, rt->iface, addrs, flags, #ifdef RTP_CONNECTED