if (close(ss->sock_fd)) {
zlog_warn(
- "%s: failure closing ssmpingd sock_fd=%d for source %pI4: errno=%d: %s",
+ "%s: failure closing ssmpingd sock_fd=%d for source %pPA: errno=%d: %s",
__func__, ss->sock_fd, &ss->source_addr, errno,
safe_strerror(errno));
/* warning only */
if (len < 0) {
zlog_warn(
- "%s: failure receiving ssmping for source %pI4 on fd=%d: errno=%d: %s",
+ "%s: failure receiving ssmping for source %pPA on fd=%d: errno=%d: %s",
__func__, &ss->source_addr, ss->sock_fd, errno,
safe_strerror(errno));
return -1;
if (buf[0] != PIM_SSMPINGD_REQUEST) {
zlog_warn(
- "%s: bad ssmping type=%d from %pSUp to %pSUp on interface %s ifindex=%d fd=%d src=%pI4",
+ "%s: bad ssmping type=%d from %pSUp to %pSUp on interface %s ifindex=%d fd=%d src=%pPA",
__func__, buf[0], &from, &to,
ifp ? ifp->name : "<iface?>", ifindex, ss->sock_fd,
&ss->source_addr);
if (PIM_DEBUG_SSMPINGD) {
zlog_debug(
- "%s: recv ssmping from %pSUp, to %pSUp, on interface %s ifindex=%d fd=%d src=%pI4",
+ "%s: recv ssmping from %pSUp, to %pSUp, on interface %s ifindex=%d fd=%d src=%pPA",
__func__, &from, &to, ifp ? ifp->name : "<iface?>",
ifindex, ss->sock_fd, &ss->source_addr);
}
sock_fd =
ssmpingd_socket(source_addr, /* port: */ 4321, /* mTTL: */ 64);
if (sock_fd < 0) {
- zlog_warn("%s: ssmpingd_socket() failure for source %pI4",
+ zlog_warn("%s: ssmpingd_socket() failure for source %pPA",
__func__, &source_addr);
return 0;
}
struct ssmpingd_sock *ss;
++writes;
for (ALL_LIST_ELEMENTS_RO(pim->ssmpingd_list, node, ss)) {
- vty_out(vty, "%sip ssmpingd %pI4\n", spaces,
+ vty_out(vty, "%sip ssmpingd %pPA\n", spaces,
&ss->source_addr);
++writes;
}