diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2020-06-01 20:54:51 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-01 20:54:51 -0300 |
| commit | c5b9016eeb37a21b64daaabf41af0b40d86b0306 (patch) | |
| tree | 6c8d4cb7058cc0db97ded421891408613818381b /zebra/zebra_mpls_openbsd.c | |
| parent | 88b5958e31e2458b710ef1aac9d352235019b546 (diff) | |
| parent | f2e7f4eba44ddb448e18e89c46f6318164bfa39a (diff) | |
Merge pull request #6266 from mjstapp/backup_nhgs
zebra: backup nexthops/nhlfes for LSPs
Diffstat (limited to 'zebra/zebra_mpls_openbsd.c')
| -rw-r--r-- | zebra/zebra_mpls_openbsd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_mpls_openbsd.c b/zebra/zebra_mpls_openbsd.c index 5e18414985..c8a3cbbbce 100644 --- a/zebra/zebra_mpls_openbsd.c +++ b/zebra/zebra_mpls_openbsd.c @@ -239,8 +239,9 @@ static int kernel_send_rtmsg_v6(int action, mpls_label_t in_label, static int kernel_lsp_cmd(struct zebra_dplane_ctx *ctx) { + const struct nhlfe_list_head *head; const zebra_nhlfe_t *nhlfe; - struct nexthop *nexthop = NULL; + const struct nexthop *nexthop = NULL; unsigned int nexthop_num = 0; int action; @@ -258,7 +259,8 @@ static int kernel_lsp_cmd(struct zebra_dplane_ctx *ctx) return -1; } - for (nhlfe = dplane_ctx_get_nhlfe(ctx); nhlfe; nhlfe = nhlfe->next) { + head = dplane_ctx_get_nhlfe_list(ctx); + frr_each(nhlfe_list_const, head, nhlfe) { nexthop = nhlfe->nexthop; if (!nexthop) continue; |
