Skip to content

Commit 4334bc9

Browse files
committed
sun: Ensure we have a netmask when adding it to the route message
1 parent b31c70d commit 4334bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/if-sun.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ if_route0(struct dhcpcd_ctx *ctx, struct rtm *rtmsg,
610610
}
611611
}
612612

613-
if (!(rtm->rtm_flags & RTF_HOST))
613+
if (!sa_is_unspecified(&rt->rt_netmask) && !(rtm->rtm_flags & RTF_HOST))
614614
rtm->rtm_addrs |= RTA_NETMASK;
615615

616616
ADDSA(&rt->rt_dest);

0 commit comments

Comments
 (0)