summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-24 12:58:08 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-03-26 21:22:00 +0100
commit5f040085bad9cff365fe4bed0696ccf7494840b5 (patch)
tree45901dd8c4d9b02af6f1db55c8318a47fca1aa6e /bgpd/rfapi
parentlib: make oid_copy_addr respect my constness (diff)
downloadfrr-5f040085bad9cff365fe4bed0696ccf7494840b5.tar.xz
frr-5f040085bad9cff365fe4bed0696ccf7494840b5.zip
lib, bgpd: Another round of `struct const prefix` cleanup
Cleanup another set of functions that need to respect the const'ness of a prefix. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/vnc_export_table.c5
-rw-r--r--bgpd/rfapi/vnc_export_table.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/bgpd/rfapi/vnc_export_table.c b/bgpd/rfapi/vnc_export_table.c
index 8bf1479a2..255f868bd 100644
--- a/bgpd/rfapi/vnc_export_table.c
+++ b/bgpd/rfapi/vnc_export_table.c
@@ -165,8 +165,9 @@ void vnc_eti_delete(struct vnc_export_info *goner)
struct vnc_export_info *vnc_eti_checktimer(struct bgp *bgp,
vnc_export_type_t etype,
- struct prefix *p, struct peer *peer,
- uint8_t type, uint8_t subtype)
+ const struct prefix *p,
+ struct peer *peer, uint8_t type,
+ uint8_t subtype)
{
struct agg_node *etn;
struct vnc_export_info *eti;
diff --git a/bgpd/rfapi/vnc_export_table.h b/bgpd/rfapi/vnc_export_table.h
index 5dcf4e6c1..8a1fc9aae 100644
--- a/bgpd/rfapi/vnc_export_table.h
+++ b/bgpd/rfapi/vnc_export_table.h
@@ -58,8 +58,9 @@ vnc_eti_get(struct bgp *bgp, vnc_export_type_t etype, const struct prefix *p,
extern void vnc_eti_delete(struct vnc_export_info *goner);
extern struct vnc_export_info *
-vnc_eti_checktimer(struct bgp *bgp, vnc_export_type_t etype, struct prefix *p,
- struct peer *peer, uint8_t type, uint8_t subtype);
+vnc_eti_checktimer(struct bgp *bgp, vnc_export_type_t etype,
+ const struct prefix *p, struct peer *peer, uint8_t type,
+ uint8_t subtype);
#endif /* _QUAGGA_VNC_VNC_EXPORT_TABLE_H_ */