summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-08-02 16:51:40 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-08-02 16:51:40 +0000
commit9950e72de2cfcf415a1c8e742a6205dbab7a9f48 (patch)
tree22bbd65b6b98f2b48e072a82c5d7510a36446857 /usr.sbin
parent40ac341bd1aabdd0dba7704e9cacbd86e53f51a0 (diff)
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.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c5
1 files changed, 3 insertions, 2 deletions
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 <henning@openbsd.org>
@@ -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;