Skip to content

Commit 7c458d9

Browse files
committed
illumos: always mark routes as static
Otherwise in.routed will delete the default route on OmniOS!
1 parent cebeec0 commit 7c458d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/if-sun.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ if_route0(struct dhcpcd_ctx *ctx, struct rtm *rtmsg,
601601
else if (!gateway_unspec)
602602
rtm->rtm_flags |= RTF_GATEWAY;
603603

604-
if (rt->rt_dflags & RTDF_STATIC)
605-
rtm->rtm_flags |= RTF_STATIC;
604+
/* Make static so that in.routed does not delete it */
605+
rtm->rtm_flags |= RTF_STATIC;
606606

607607
if (rt->rt_mtu != 0) {
608608
rtm->rtm_inits |= RTV_MTU;

0 commit comments

Comments
 (0)