diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-03-01 15:31:28 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 09:31:09 -0400 |
| commit | eac6e3f027356c25a8c8fddf921f769b79945fcc (patch) | |
| tree | 69d5a17fb3f95934bafa22f8a3aee28c92780d62 /ldpd/notification.c | |
| parent | e30090a678e45aee2755c492212c5a478b9dcfcc (diff) | |
ldpd: adapt the code for Quagga
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/notification.c')
| -rw-r--r-- | ldpd/notification.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ldpd/notification.c b/ldpd/notification.c index f30646bb83..d306361d5c 100644 --- a/ldpd/notification.c +++ b/ldpd/notification.c @@ -16,14 +16,13 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <sys/types.h> -#include <arpa/inet.h> -#include <string.h> +#include <zebra.h> #include "ldpd.h" #include "ldp.h" #include "log.h" #include "ldpe.h" +#include "ldp_debug.h" void send_notification_full(struct tcp_conn *tcp, struct notify_msg *nm) @@ -65,7 +64,7 @@ send_notification_full(struct tcp_conn *tcp, struct notify_msg *nm) } if (tcp->nbr) - log_debug("msg-out: notification: lsr-id %s, status %s%s", + 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)" : ""); @@ -199,8 +198,8 @@ recv_notification(struct nbr *nbr, char *buf, uint16_t len) } } - log_warnx("msg-in: notification: lsr-id %s, status %s%s", - inet_ntoa(nbr->id), status_code_name(ntohl(st.status_code)), + 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 (st.status_code & htonl(STATUS_FATAL)) { |
