]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set route flags for IPv6 routes, allowing RTF_REJECT to work again.
authorRoy Marples <roy@marples.name>
Sun, 7 Aug 2016 20:47:57 +0000 (20:47 +0000)
committerRoy Marples <roy@marples.name>
Sun, 7 Aug 2016 20:47:57 +0000 (20:47 +0000)
Thanks to Guy Yur.

if-bsd.c

index 56ef1fd1d300afcb1f4a18ae80e0e009009e9ec4..fc79992502a166a87ee88dc194d5ec25d7ecd359 100644 (file)
--- 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;