From: Roy Marples Date: Sun, 7 Aug 2016 20:47:57 +0000 (+0000) Subject: Set route flags for IPv6 routes, allowing RTF_REJECT to work again. X-Git-Tag: v6.11.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78013e9d5682cf13ea5de774bf0063f6fb94138d;p=thirdparty%2Fdhcpcd.git Set route flags for IPv6 routes, allowing RTF_REJECT to work again. Thanks to Guy Yur. --- diff --git a/if-bsd.c b/if-bsd.c index 56ef1fd1..fc799925 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -1122,7 +1122,7 @@ if_route6(unsigned char cmd, const struct rt6 *rt) #endif addrs = RTA_NETMASK; - flags = 0; + flags = (int)rt->flags; #ifdef RTF_PINNED if (cmd != RTM_ADD) flags |= RTF_PINNED;