diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-11-08 14:13:33 -0500 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-03-27 09:37:02 -0400 | 
| commit | e4a1ec7454490af0ea45013cb279eb9b15edef51 (patch) | |
| tree | eb93d94f2b0e726a70dea73eeb8deeb18bb2be57 /zebra/zebra_mpls.h | |
| parent | ee8606ee39a50b8a644352be4881a77a5822911d (diff) | |
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 2489e8e510..33cb614346 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.  | 
