Skip to content

Commit 9bb6f5d

Browse files
committed
Set the fake flag on the route if the added state is fake
1 parent d25c026 commit 9bb6f5d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ipv4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ inet_dhcproutes(rb_tree_t *routes, struct interface *ifp, bool *have_default)
359359
rt->rt_mtu = mtu;
360360
if (!(rt->rt_dflags & RTDF_STATIC))
361361
rt->rt_dflags |= RTDF_DHCP;
362+
if (state->added & STATE_FAKE)
363+
rt->rt_dflags |= RTDF_FAKE;
362364
sa_in_init(&rt->rt_ifa, &state->addr->addr);
363365
if (rb_tree_insert_node(routes, rt) != rt) {
364366
rt_free(rt);

0 commit comments

Comments
 (0)