Skip to content

Commit

Permalink
Merge pull request #16597 from kprovost/master
Browse files Browse the repository at this point in the history
zebra: fix loading kernel routes without netlink
  • Loading branch information
Jafaral authored Aug 19, 2024
2 parents 8ae3279 + f0aa8d4 commit d9775c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zebra/if_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ void interface_list(struct zebra_ns *zns)
/proc/net/if_inet6. */
ifaddr_proc_ipv6();
#endif /* HAVE_PROC_NET_IF_INET6 */

zebra_dplane_startup_stage(zns, ZEBRA_DPLANE_INTERFACES_READ);
}

#endif /* OPEN_BSD */
2 changes: 2 additions & 0 deletions zebra/if_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ void interface_list(struct zebra_ns *zns)

/* Free sysctl buffer. */
XFREE(MTYPE_TMP, ref);

zebra_dplane_startup_stage(zns, ZEBRA_DPLANE_INTERFACES_READ);
}

#endif /* !defined(GNU_LINUX) && !defined(OPEN_BSD) */
2 changes: 2 additions & 0 deletions zebra/kernel_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,10 +1468,12 @@ static void routing_socket(struct zebra_ns *zns)

void interface_list_second(struct zebra_ns *zns)
{
zebra_dplane_startup_stage(zns, ZEBRA_DPLANE_ADDRESSES_READ);
}

void interface_list_tunneldump(struct zebra_ns *zns)
{
zebra_dplane_startup_stage(zns, ZEBRA_DPLANE_TUNNELS_READ);
}

/* Exported interface function. This function simply calls
Expand Down

0 comments on commit d9775c6

Please sign in to comment.