diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-03 17:50:22 -0300 | 
| commit | 8afbd8942ae56af31c0bcbf741b4ef11f2b8f229 (patch) | |
| tree | 5bfc265fba57c4c6403c640a06a4144098b14aab /ldpd/notification.c | |
| parent | adbdf4653f3a408900c6be58fbdf497c0439a84e (diff) | |
ldpd: provide more detailed output when logging notification messages
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/notification.c')
| -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 f70af76bad..d435bc8845 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)  | 
