mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 09:15:34 +00:00
bgpd: Use slightly modified version of error message if AS path contains 0
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
6f2f2e6172
commit
6ded3e181b
@ -1405,9 +1405,10 @@ static int bgp_attr_aspath(struct bgp_attr_parser_args *args)
|
|||||||
|
|
||||||
/* Codification of AS 0 Processing */
|
/* Codification of AS 0 Processing */
|
||||||
if (aspath_check_as_zero(attr->aspath)) {
|
if (aspath_check_as_zero(attr->aspath)) {
|
||||||
flog_err(EC_BGP_ATTR_MAL_AS_PATH,
|
flog_err(
|
||||||
"Malformed AS path, contains BGP_AS_ZERO(0) from %s",
|
EC_BGP_ATTR_MAL_AS_PATH,
|
||||||
peer->host);
|
"Malformed AS path, AS number is 0 in the path from %s",
|
||||||
|
peer->host);
|
||||||
return bgp_attr_malformed(args, BGP_NOTIFY_UPDATE_MAL_AS_PATH,
|
return bgp_attr_malformed(args, BGP_NOTIFY_UPDATE_MAL_AS_PATH,
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
@ -1485,9 +1486,10 @@ static int bgp_attr_as4_path(struct bgp_attr_parser_args *args,
|
|||||||
|
|
||||||
/* Codification of AS 0 Processing */
|
/* Codification of AS 0 Processing */
|
||||||
if (aspath_check_as_zero(*as4_path)) {
|
if (aspath_check_as_zero(*as4_path)) {
|
||||||
flog_err(EC_BGP_ATTR_MAL_AS_PATH,
|
flog_err(
|
||||||
"Malformed AS4 path, contains BGP_AS_ZERO(0) from %s",
|
EC_BGP_ATTR_MAL_AS_PATH,
|
||||||
peer->host);
|
"Malformed AS path, AS number is 0 in the path from %s",
|
||||||
|
peer->host);
|
||||||
return bgp_attr_malformed(args, BGP_NOTIFY_UPDATE_MAL_AS_PATH,
|
return bgp_attr_malformed(args, BGP_NOTIFY_UPDATE_MAL_AS_PATH,
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user