static int rpki_sync_socket_bgpd;
static struct cmd_node rpki_node = {RPKI_NODE, "%s(config-rpki)# ", 1};
-static struct route_map_rule_cmd route_match_rpki_cmd = {
+static const struct route_map_rule_cmd route_match_rpki_cmd = {
"rpki", route_match, route_match_compile, route_match_free};
static void *malloc_wrapper(size_t size)
}
}
- prefix_free(prefix);
+ prefix_free(&prefix);
return 0;
}
const struct pfx_record *record = &matches[i];
if (record->max_len >= prefix->prefixlen
- && ((asn != 0 && asn == record->asn) || asn == 0)) {
+ && ((asn != 0 && (uint32_t)asn == record->asn)
+ || asn == 0)) {
print_record(&matches[i], vty);
}
}