From: Roy Marples Date: Wed, 12 Feb 2025 10:51:26 +0000 (+0000) Subject: illumos: always mark routes as static X-Git-Tag: v10.2.0~9 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c458d9926fbc8d155cb080e6bf6c484d2334da0;p=thirdparty%2Fdhcpcd.git illumos: always mark routes as static Otherwise in.routed will delete the default route on OmniOS! --- diff --git a/src/if-sun.c b/src/if-sun.c index 8b774c29..7f244b77 100644 --- a/src/if-sun.c +++ b/src/if-sun.c @@ -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;