From 7c458d9926fbc8d155cb080e6bf6c484d2334da0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 12 Feb 2025 10:51:26 +0000 Subject: [PATCH] illumos: always mark routes as static Otherwise in.routed will delete the default route on OmniOS! --- src/if-sun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3