diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 21:50:22 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 21:50:22 +0100 |
commit | 8afbd8942ae56af31c0bcbf741b4ef11f2b8f229 (patch) | |
tree | 5bfc265fba57c4c6403c640a06a4144098b14aab /ldpd/notification.c | |
parent | ldpd: kill send_notification_nbr() (diff) | |
download | frr-8afbd8942ae56af31c0bcbf741b4ef11f2b8f229.tar.xz frr-8afbd8942ae56af31c0bcbf741b4ef11f2b8f229.zip |
ldpd: provide more detailed output when logging notification messages
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | ldpd/notification.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ldpd/notification.c b/ldpd/notification.c index f70af76ba..d435bc884 100644 --- a/ldpd/notification.c +++ b/ldpd/notification.c @@ -67,6 +67,12 @@ send_notification_full(struct tcp_conn *tcp, struct notify_msg *nm) debug_msg_send("notification: lsr-id %s status %s%s", inet_ntoa(tcp->nbr->id), status_code_name(nm->status_code), (nm->status_code & STATUS_FATAL) ? " (fatal)" : ""); + if (nm->flags & F_NOTIF_FEC) + debug_msg_send("notification: fec %s", + log_map(&nm->fec)); + if (nm->flags & F_NOTIF_PW_STATUS) + debug_msg_send("notification: pw-status %s", + (nm->pw_status) ? "not forwarding" : "forwarding"); nbr_fsm(tcp->nbr, NBR_EVT_PDU_SENT); } @@ -195,6 +201,11 @@ recv_notification(struct nbr *nbr, char *buf, uint16_t len) debug_msg_recv("notification: lsr-id %s: %s%s", inet_ntoa(nbr->id), status_code_name(ntohl(st.status_code)), (st.status_code & htonl(STATUS_FATAL)) ? " (fatal)" : ""); + if (nm.flags & F_NOTIF_FEC) + debug_msg_recv("notification: fec %s", log_map(&nm.fec)); + if (nm.flags & F_NOTIF_PW_STATUS) + debug_msg_recv("notification: pw-status %s", + (nm.pw_status) ? "not forwarding" : "forwarding"); if (st.status_code & htonl(STATUS_FATAL)) { if (nbr->state == NBR_STA_OPENSENT) |