]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: add const to mpls and dplane nhlfe apis
authorMark Stapp <mjs@voltanet.io>
Fri, 29 May 2020 18:26:03 +0000 (14:26 -0400)
committerMark Stapp <mjs@voltanet.io>
Tue, 7 Jul 2020 17:14:01 +0000 (13:14 -0400)
Add const to an arg to a couple of the dplane and mpls module
apis that add nhlfes to LSPs.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_dplane.c
zebra/zebra_dplane.h
zebra/zebra_mpls.c
zebra/zebra_mpls.h

index 290abf7b34e952f3073aa99fa9740bef12944ade..cc9868b92de36573c28502b06e23bffc3af678f0 100644 (file)
@@ -1334,7 +1334,7 @@ const struct nhlfe_list_head *dplane_ctx_get_backup_nhlfe_list(
 zebra_nhlfe_t *dplane_ctx_add_nhlfe(struct zebra_dplane_ctx *ctx,
                                    enum lsp_types_t lsp_type,
                                    enum nexthop_types_t nh_type,
-                                   union g_addr *gate,
+                                   const union g_addr *gate,
                                    ifindex_t ifindex,
                                    uint8_t num_labels,
                                    mpls_label_t *out_labels)
@@ -1353,7 +1353,7 @@ zebra_nhlfe_t *dplane_ctx_add_nhlfe(struct zebra_dplane_ctx *ctx,
 zebra_nhlfe_t *dplane_ctx_add_backup_nhlfe(struct zebra_dplane_ctx *ctx,
                                           enum lsp_types_t lsp_type,
                                           enum nexthop_types_t nh_type,
-                                          union g_addr *gate,
+                                          const union g_addr *gate,
                                           ifindex_t ifindex,
                                           uint8_t num_labels,
                                           mpls_label_t *out_labels)
index 2c3501a5b1c209c667fd32d63d6bcb73ce2a24bb..46d556bfce9c8867df994c22f595a316568628e9 100644 (file)
@@ -327,7 +327,7 @@ const struct nhlfe_list_head *dplane_ctx_get_backup_nhlfe_list(
 zebra_nhlfe_t *dplane_ctx_add_nhlfe(struct zebra_dplane_ctx *ctx,
                                    enum lsp_types_t lsp_type,
                                    enum nexthop_types_t nh_type,
-                                   union g_addr *gate,
+                                   const union g_addr *gate,
                                    ifindex_t ifindex,
                                    uint8_t num_labels,
                                    mpls_label_t *out_labels);
@@ -335,7 +335,7 @@ zebra_nhlfe_t *dplane_ctx_add_nhlfe(struct zebra_dplane_ctx *ctx,
 zebra_nhlfe_t *dplane_ctx_add_backup_nhlfe(struct zebra_dplane_ctx *ctx,
                                           enum lsp_types_t lsp_type,
                                           enum nexthop_types_t nh_type,
-                                          union g_addr *gate,
+                                          const union g_addr *gate,
                                           ifindex_t ifindex,
                                           uint8_t num_labels,
                                           mpls_label_t *out_labels);
index 8ee860168991e8a69df9f061c18b8209f90e8ec9..68dfe20371c795b98bf5536bd4f254da4937e826 100644 (file)
@@ -2234,7 +2234,7 @@ int zebra_mpls_lsp_uninstall(struct zebra_vrf *zvrf, struct route_node *rn,
 zebra_nhlfe_t *zebra_mpls_lsp_add_nhlfe(zebra_lsp_t *lsp,
                                        enum lsp_types_t lsp_type,
                                        enum nexthop_types_t gtype,
-                                       union g_addr *gate,
+                                       const union g_addr *gate,
                                        ifindex_t ifindex,
                                        uint8_t num_labels,
                                        const mpls_label_t *out_labels)
@@ -2252,7 +2252,7 @@ zebra_nhlfe_t *zebra_mpls_lsp_add_nhlfe(zebra_lsp_t *lsp,
 zebra_nhlfe_t *zebra_mpls_lsp_add_backup_nhlfe(zebra_lsp_t *lsp,
                                               enum lsp_types_t lsp_type,
                                               enum nexthop_types_t gtype,
-                                              union g_addr *gate,
+                                              const union g_addr *gate,
                                               ifindex_t ifindex,
                                               uint8_t num_labels,
                                               const mpls_label_t *out_labels)
index 9b5fb39573842bd2e96272a585789ccd10837eec..53429ee99c380171d64d959a71341e4f23764829 100644 (file)
@@ -213,7 +213,7 @@ int zebra_mpls_lsp_uninstall(struct zebra_vrf *zvrf, struct route_node *rn,
 zebra_nhlfe_t *zebra_mpls_lsp_add_nhlfe(zebra_lsp_t *lsp,
                                        enum lsp_types_t lsp_type,
                                        enum nexthop_types_t gtype,
-                                       union g_addr *gate,
+                                       const union g_addr *gate,
                                        ifindex_t ifindex,
                                        uint8_t num_labels,
                                        const mpls_label_t *out_labels);
@@ -222,7 +222,7 @@ zebra_nhlfe_t *zebra_mpls_lsp_add_nhlfe(zebra_lsp_t *lsp,
 zebra_nhlfe_t *zebra_mpls_lsp_add_backup_nhlfe(zebra_lsp_t *lsp,
                                               enum lsp_types_t lsp_type,
                                               enum nexthop_types_t gtype,
-                                              union g_addr *gate,
+                                              const union g_addr *gate,
                                               ifindex_t ifindex,
                                               uint8_t num_labels,
                                               const mpls_label_t *out_labels);