illumos: always mark routes as static

Otherwise in.routed will delete the default route on OmniOS!
This commit is contained in:
Roy Marples 2025-02-12 10:51:26 +00:00
parent cebeec0887
commit 7c458d9926

View 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;