diff options
author | Russ White <russ@riw.us> | 2021-02-17 18:59:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 18:59:56 +0100 |
commit | c3a407489a82c8e4c9e60014c6ae74f6285efd67 (patch) | |
tree | 4ba309ef12f9a5e42993d75a033850988e8f3836 /bgpd/bgpd.h | |
parent | Merge pull request #8101 from idryzhov/staticd-fixes (diff) | |
parent | bgpd: add tracepoints for BMP (diff) | |
download | frr-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.h | 2 |
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. */ |