]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
illumos: always mark routes as static
authorRoy Marples <roy@marples.name>
Wed, 12 Feb 2025 10:51:26 +0000 (10:51 +0000)
committerRoy Marples <roy@marples.name>
Wed, 12 Feb 2025 10:51:26 +0000 (10:51 +0000)
Otherwise in.routed will delete the default route on OmniOS!

src/if-sun.c

index 8b774c29c47b6f22785745df1920dc9014259484..7f244b7762a8980655e5adff04b6a7d21c8d7690 100644 (file)
@@ -601,8 +601,8 @@ if_route0(struct dhcpcd_ctx *ctx, struct rtm *rtmsg,
                else if (!gateway_unspec)
                        rtm->rtm_flags |= RTF_GATEWAY;
 
-               if (rt->rt_dflags & RTDF_STATIC)
-                       rtm->rtm_flags |= RTF_STATIC;
+               /* Make static so that in.routed does not delete it */
+               rtm->rtm_flags |= RTF_STATIC;
 
                if (rt->rt_mtu != 0) {
                        rtm->rtm_inits |= RTV_MTU;