]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp: mark routes needed dhcpcd adds to reach router as host routes
authorRoy Marples <roy@marples.name>
Thu, 5 Apr 2018 13:22:39 +0000 (13:22 +0000)
committerRoy Marples <roy@marples.name>
Thu, 5 Apr 2018 13:22:39 +0000 (13:22 +0000)
This is mainly a cosmetic change.

src/ipv4.c

index 955f2020abaffe4194892cb733291d98e4b5efb0..0a2594b88c3879428c3fe54b5069549a90acf044 100644 (file)
@@ -408,6 +408,7 @@ inet_routerhostroute(struct rt_head *routes, struct interface *ifp)
                }
                if ((rth = rt_new(ifp)) == NULL)
                        return -1;
+               rth->rt_flags |= RTF_HOST;
                sa_in_init(&rth->rt_dest, &gateway->sin_addr);
                in.s_addr = INADDR_BROADCAST;
                sa_in_init(&rth->rt_netmask, &in);