-/* $OpenBSD: output.c,v 1.45 2024/01/11 13:09:41 claudio Exp $ */
+/* $OpenBSD: output.c,v 1.46 2024/01/11 14:34:49 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
show_neighbor_msgstats(p);
printf("\n");
- if (p->stats.last_reason[0]) {
- printf(" Last received shutdown reason: \"%s\"\n",
- log_reason(p->stats.last_reason));
- }
errstr = fmt_errstr(p->stats.last_sent_errcode,
p->stats.last_sent_suberr);
p->stats.last_rcvd_suberr);
if (errstr)
printf(" Last error received: %s\n", errstr);
+ if (p->stats.last_reason[0]) {
+ printf(" Last received shutdown reason: \"%s\"\n",
+ log_reason(p->stats.last_reason));
+ }
if (p->state >= STATE_OPENSENT) {
printf(" Local host: %20s, Local port: %5u\n",