summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-02-17 18:59:56 +0100
committerGitHub <noreply@github.com>2021-02-17 18:59:56 +0100
commitc3a407489a82c8e4c9e60014c6ae74f6285efd67 (patch)
tree4ba309ef12f9a5e42993d75a033850988e8f3836 /bgpd/bgpd.h
parentMerge pull request #8101 from idryzhov/staticd-fixes (diff)
parentbgpd: add tracepoints for BMP (diff)
downloadfrr-c3a407489a82c8e4c9e60014c6ae74f6285efd67.tar.xz
frr-c3a407489a82c8e4c9e60014c6ae74f6285efd67.zip
Merge pull request #8068 from qlyoung/bmp-tracing
BMP tracepoints
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 7a8f99163..e79dccdab 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -995,6 +995,8 @@ enum bgp_fsm_status {
BGP_STATUS_MAX,
};
+#define PEER_HOSTNAME(peer) ((peer)->host ? (peer)->host : "(unknown peer)")
+
/* BGP neighbor structure. */
struct peer {
/* BGP structure. */