summaryrefslogtreecommitdiff
path: root/ldpd/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldpd/init.c')
-rw-r--r--ldpd/init.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ldpd/init.c b/ldpd/init.c
index 30b78315f9..d394fb08ea 100644
--- a/ldpd/init.c
+++ b/ldpd/init.c
@@ -35,7 +35,7 @@ send_init(struct nbr *nbr)
uint16_t size;
int err = 0;
- debug_msg_send("initialization: lsr-id %s", inet_ntoa(nbr->id));
+ debug_msg_send("initialization: lsr-id %pI4", &nbr->id);
size = LDP_HDR_SIZE + LDP_MSG_SIZE + SESS_PRMS_SIZE +
CAP_TLV_DYNAMIC_SIZE + CAP_TLV_TWCARD_SIZE + CAP_TLV_UNOTIF_SIZE;
@@ -65,7 +65,7 @@ recv_init(struct nbr *nbr, char *buf, uint16_t len)
uint16_t max_pdu_len;
int caps_rcvd = 0;
- debug_msg_recv("initialization: lsr-id %s", inet_ntoa(nbr->id));
+ debug_msg_recv("initialization: lsr-id %pI4", &nbr->id);
memcpy(&msg, buf, sizeof(msg));
buf += LDP_MSG_SIZE;
@@ -146,8 +146,8 @@ recv_init(struct nbr *nbr, char *buf, uint16_t len)
nbr->flags |= F_NBR_CAP_DYNAMIC;
- log_debug("%s: lsr-id %s announced the Dynamic Capability Announcement capability", __func__,
- inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %pI4 announced the Dynamic Capability Announcement capability", __func__,
+ &nbr->id);
break;
case TLV_TYPE_TWCARD_CAP:
if (tlv_len != CAP_TLV_TWCARD_LEN) {
@@ -165,7 +165,7 @@ recv_init(struct nbr *nbr, char *buf, uint16_t len)
nbr->flags |= F_NBR_CAP_TWCARD;
- log_debug("%s: lsr-id %s announced the Typed Wildcard FEC capability", __func__, inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %pI4 announced the Typed Wildcard FEC capability", __func__, &nbr->id);
break;
case TLV_TYPE_UNOTIF_CAP:
if (tlv_len != CAP_TLV_UNOTIF_LEN) {
@@ -183,8 +183,8 @@ recv_init(struct nbr *nbr, char *buf, uint16_t len)
nbr->flags |= F_NBR_CAP_UNOTIF;
- log_debug("%s: lsr-id %s announced the Unrecognized Notification capability", __func__,
- inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %pI4 announced the Unrecognized Notification capability", __func__,
+ &nbr->id);
break;
default:
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
@@ -222,7 +222,7 @@ send_capability(struct nbr *nbr, uint16_t capability, int enable)
uint16_t size;
int err = 0;
- log_debug("%s: lsr-id %s", __func__, inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %pI4", __func__, &nbr->id);
size = LDP_HDR_SIZE + LDP_MSG_SIZE + CAP_TLV_DYNAMIC_SIZE;
if ((buf = ibuf_open(size)) == NULL)
@@ -268,7 +268,7 @@ recv_capability(struct nbr *nbr, char *buf, uint16_t len)
int enable = 0;
int caps_rcvd = 0;
- log_debug("%s: lsr-id %s", __func__, inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %pI4", __func__, &nbr->id);
memcpy(&msg, buf, sizeof(msg));
buf += LDP_MSG_SIZE;
@@ -318,7 +318,7 @@ recv_capability(struct nbr *nbr, char *buf, uint16_t len)
else
nbr->flags &= ~F_NBR_CAP_TWCARD;
- log_debug("%s: lsr-id %s %s the Typed Wildcard FEC capability", __func__, inet_ntoa(nbr->id),
+ log_debug("%s: lsr-id %pI4 %s the Typed Wildcard FEC capability", __func__, &nbr->id,
(enable) ? "announced" : "withdrew");
break;
case TLV_TYPE_UNOTIF_CAP:
@@ -342,8 +342,8 @@ recv_capability(struct nbr *nbr, char *buf, uint16_t len)
else
nbr->flags &= ~F_NBR_CAP_UNOTIF;
- log_debug("%s: lsr-id %s %s the Unrecognized Notification capability", __func__,
- inet_ntoa(nbr->id), (enable) ? "announced" :
+ log_debug("%s: lsr-id %pI4 %s the Unrecognized Notification capability", __func__,
+ &nbr->id, (enable) ? "announced" :
"withdrew");
break;
case TLV_TYPE_DYNAMIC_CAP: