mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-27 08:21:36 +00:00
bgpd: Return enum RPKI_NOT_BEING_USED instead of 0
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
9ca44fc8ef
commit
e1a05dd410
@ -729,7 +729,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
|
|||||||
enum pfxv_state result;
|
enum pfxv_state result;
|
||||||
|
|
||||||
if (!is_synchronized())
|
if (!is_synchronized())
|
||||||
return 0;
|
return RPKI_NOT_BEING_USED;
|
||||||
|
|
||||||
// No aspath means route comes from iBGP
|
// No aspath means route comes from iBGP
|
||||||
if (!attr->aspath || !attr->aspath->segments) {
|
if (!attr->aspath || !attr->aspath->segments) {
|
||||||
@ -769,7 +769,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return RPKI_NOT_BEING_USED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do the actual validation
|
// Do the actual validation
|
||||||
@ -799,7 +799,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
|
|||||||
prefix, as_number);
|
prefix, as_number);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return RPKI_NOT_BEING_USED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int add_cache(struct cache *cache)
|
static int add_cache(struct cache *cache)
|
||||||
|
Loading…
Reference in New Issue
Block a user