From: claudio Date: Mon, 2 Aug 2021 16:51:39 +0000 (+0000) Subject: Show if add_path was used when decoding the BGP message in MRT format. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=477f0c2c88108b499adc0727e10e8a148c1eb244;p=openbsd 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. --- 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;