From 9950e72de2cfcf415a1c8e742a6205dbab7a9f48 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 2 Aug 2021 16:51:40 +0000 Subject: Show if add_path was used when decoding the BGP message in MRT format. This may help to spot encoding errors a bit more easily. --- usr.sbin/bgpctl/bgpctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index f50ef36d2df..1e0b733c281 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.271 2021/07/27 07:42:37 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.272 2021/08/02 16:51:39 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -1723,7 +1723,8 @@ show_mrt_msg(struct mrt_bgp_msg *mm, void *arg) printf("%s %s[%u] -> ", fmt_time(&mm->time), log_addr(&mm->src), mm->src_as); - printf("%s[%u]: size %u ", log_addr(&mm->dst), mm->dst_as, mm->msg_len); + printf("%s[%u]: size %u%s ", log_addr(&mm->dst), mm->dst_as, + mm->msg_len, mm->add_path ? " addpath" : ""); p = mm->msg; len = mm->msg_len; -- cgit v1.2.3