]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always set the outgoing interface when creating non reject routes on BSD.
authorRoy Marples <roy@marples.name>
Tue, 4 Jul 2017 13:36:01 +0000 (14:36 +0100)
committerRoy Marples <roy@marples.name>
Tue, 4 Jul 2017 13:36:01 +0000 (14:36 +0100)
src/if-bsd.c

index 4968541df02fe41fbd10eb0e2052cef80138733c..7d7faa64506f0a5c9f64a983008adb1fa56596b8 100644 (file)
@@ -505,8 +505,7 @@ if_route(unsigned char cmd, const struct rt *rt)
                if (!(rtm->rtm_flags & RTF_REJECT) &&
                    !sa_is_loopback(&rt->rt_gateway))
                {
-                       if (!gateway_unspec)
-                               rtm->rtm_addrs |= RTA_IFP;
+                       rtm->rtm_addrs |= RTA_IFP;
                        if (!sa_is_unspecified(&rt->rt_ifa))
                                rtm->rtm_addrs |= RTA_IFA;
                }