diff options
author | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:49:52 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-01-21 23:49:52 +0100 |
commit | 21c4c8eafb7125375b2e562cc0e7e9d52bbb1aaf (patch) | |
tree | 22ddac5513f6495334666e7af2aa218640a1afb1 /proto | |
parent | 2f764c87ff3c8a8af6d3bc043b439276ba2b0a79 (diff) | |
parent | 1e47b9f203aaaad0fb658d40a1670f1d0437f1f8 (diff) |
Merge commit '1e47b9f203aaaad0fb658d40a1670f1d0437f1f8' into thread-next
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bgp/packets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 04e4505c..0b8a899a 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -3145,8 +3145,8 @@ bgp_log_error(struct bgp_proto *p, u8 class, char *msg, uint code, uint subcode, if (len) { - /* Bad peer AS - we would like to print the AS */ - if ((code == 2) && (subcode == 2) && ((len == 2) || (len == 4))) + /* Bad peer AS / unacceptable hold time - print the value as decimal number */ + if ((code == 2) && ((subcode == 2) || (subcode == 6)) && ((len == 2) || (len == 4))) { t += bsprintf(t, ": %u", (len == 2) ? get_u16(data) : get_u32(data)); goto done; |