summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-21 23:49:52 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-21 23:49:52 +0100
commit21c4c8eafb7125375b2e562cc0e7e9d52bbb1aaf (patch)
tree22ddac5513f6495334666e7af2aa218640a1afb1 /proto/bgp/packets.c
parent2f764c87ff3c8a8af6d3bc043b439276ba2b0a79 (diff)
parent1e47b9f203aaaad0fb658d40a1670f1d0437f1f8 (diff)
Merge commit '1e47b9f203aaaad0fb658d40a1670f1d0437f1f8' into thread-next
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c4
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;