From 898c4e662114d3acbd9dc26291da5ff1979f278b Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Wed, 8 Aug 2018 15:08:22 -0700 Subject: [PATCH] bgpd: Fix bgp rpki to match route-map update from PR #2697 Signed-off-by: Martin Winter --- bgpd/bgp_rpki.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c index 774c484784..52c5dc5e90 100644 --- a/bgpd/bgp_rpki.c +++ b/bgpd/bgp_rpki.c @@ -126,7 +126,7 @@ static void print_record(const struct pfx_record *record, void *data); static int is_synchronized(void); static int is_running(void); static void route_match_free(void *rule); -static route_map_result_t route_match(void *rule, struct prefix *prefix, +static route_map_result_t route_match(void *rule, const struct prefix *prefix, route_map_object_t type, void *object); static void *route_match_compile(const char *arg); static void revalidate_bgp_node(struct bgp_node *bgp_node, afi_t afi, @@ -190,7 +190,7 @@ static void free_tr_socket(struct cache *cache) } static int rpki_validate_prefix(struct peer *peer, struct attr *attr, - struct prefix *prefix); + const struct prefix *prefix); static void ipv6_addr_to_network_byte_order(const uint32_t *src, uint32_t *dest) { @@ -208,7 +208,7 @@ static void ipv6_addr_to_host_byte_order(const uint32_t *src, uint32_t *dest) dest[i] = ntohl(src[i]); } -static route_map_result_t route_match(void *rule, struct prefix *prefix, +static route_map_result_t route_match(void *rule, const struct prefix *prefix, route_map_object_t type, void *object) { int *rpki_status = rule; @@ -621,7 +621,7 @@ static void print_prefix_table(struct vty *vty) } static int rpki_validate_prefix(struct peer *peer, struct attr *attr, - struct prefix *prefix) + const struct prefix *prefix) { struct assegment *as_segment; as_t as_number = 0; -- 2.39.5