]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Support RTF_CONNECTED, soon to be committed to NetBSD.
authorRoy Marples <roy@marples.name>
Fri, 11 Mar 2016 12:11:47 +0000 (12:11 +0000)
committerRoy Marples <roy@marples.name>
Fri, 11 Mar 2016 12:11:47 +0000 (12:11 +0000)
if-bsd.c

index 2c44ea8c3cd25ced7c8986ec4303572e8a97fcbf..74b3c8dfbb57b8eeb8da7f9e448293d1d5b4a261 100644 (file)
--- a/if-bsd.c
+++ b/if-bsd.c
@@ -594,6 +594,9 @@ if_route(unsigned char cmd, const struct rt *rt)
 #ifdef RTF_CLONING
                        rtm.hdr.rtm_flags |= RTF_CLONING;
 #endif
+#ifdef RTF_CONNECTED
+                       rtm.hdr.rtm_flags |= RTF_CONNECTED;
+#endif
 #ifdef RTP_CONNECTED
                        rtm.hdr.rtm_priority = RTP_CONNECTED;
 #endif
@@ -641,6 +644,9 @@ if_route(unsigned char cmd, const struct rt *rt)
                    rt->gate.s_addr == htonl(INADDR_ANY)) ||
 #ifdef RTF_CLONING
                    rtm.hdr.rtm_flags & RTF_CLONING ||
+#endif
+#ifdef RTF_CONNECTED
+                   rtm.hdr.rtm_flags & RTF_CONNECTED ||
 #endif
                    !(rtm.hdr.rtm_flags & RTF_STATIC))
                {
@@ -998,6 +1004,9 @@ if_route6(unsigned char cmd, const struct rt6 *rt)
 #ifdef RTF_CLONING
                rtm.hdr.rtm_flags |= RTF_CLONING;
 #endif
+#ifdef RTF_CONNECTED
+               rtm.hdr.rtm_flags |= RTF_CONNECTED;
+#endif
 #ifdef RTP_CONNECTED
                rtm.hdr.rtm_priority = RTP_CONNECTED;
 #endif