diff options
author | Mark Stapp <mjs@voltanet.io> | 2019-11-08 20:13:33 +0100 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-03-27 14:37:02 +0100 |
commit | e4a1ec7454490af0ea45013cb279eb9b15edef51 (patch) | |
tree | eb93d94f2b0e726a70dea73eeb8deeb18bb2be57 /zebra/zebra_mpls.h | |
parent | Merge pull request #5740 from sworleys/NHG-2Grp-Fixes (diff) | |
download | frr-e4a1ec7454490af0ea45013cb279eb9b15edef51.tar.xz frr-e4a1ec7454490af0ea45013cb279eb9b15edef51.zip |
zebra,lib: use const in more apis
Use const with some args to ipaddr, zebra vxlan, mpls
lsp, and nexthop apis; add some extra checks to some
nexthop-related apis.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls.h')
-rw-r--r-- | zebra/zebra_mpls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index 2489e8e51..33cb61434 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -288,7 +288,7 @@ int mpls_ftn_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type, int mpls_lsp_install(struct zebra_vrf *zvrf, enum lsp_types_t type, mpls_label_t in_label, uint8_t num_out_labels, mpls_label_t out_labels[], enum nexthop_types_t gtype, - union g_addr *gate, ifindex_t ifindex); + const union g_addr *gate, ifindex_t ifindex); /* * Uninstall a particular NHLFE in the forwarding table. If this is @@ -296,7 +296,7 @@ int mpls_lsp_install(struct zebra_vrf *zvrf, enum lsp_types_t type, */ int mpls_lsp_uninstall(struct zebra_vrf *zvrf, enum lsp_types_t type, mpls_label_t in_label, enum nexthop_types_t gtype, - union g_addr *gate, ifindex_t ifindex); + const union g_addr *gate, ifindex_t ifindex); /* * Uninstall all NHLFEs for a particular LSP forwarding entry. |