natpmp.c: improve error logging
This commit is contained in:
parent
9bd290fccb
commit
ba9315b9b4
|
@ -466,8 +466,8 @@ void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets)
|
||||||
(struct sockaddr *)&sockname, sizeof(struct sockaddr_in));
|
(struct sockaddr *)&sockname, sizeof(struct sockaddr_in));
|
||||||
if(n < 0)
|
if(n < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d): %m",
|
syslog(LOG_ERR, "%s: sendto(s_udp=%d, port=%d): %m",
|
||||||
"SendNATPMPPublicAddressChangeNotification", sockets[j]);
|
"SendNATPMPPublicAddressChangeNotification", sockets[j], NATPMP_PORT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Port to use in 2008 version of the NAT-PMP specification */
|
/* Port to use in 2008 version of the NAT-PMP specification */
|
||||||
|
@ -476,8 +476,8 @@ void SendNATPMPPublicAddressChangeNotification(int * sockets, int n_sockets)
|
||||||
(struct sockaddr *)&sockname, sizeof(struct sockaddr_in));
|
(struct sockaddr *)&sockname, sizeof(struct sockaddr_in));
|
||||||
if(n < 0)
|
if(n < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d): %m",
|
syslog(LOG_ERR, "%s: sendto(s_udp=%d, port=%d): %m",
|
||||||
"SendNATPMPPublicAddressChangeNotification", sockets[j]);
|
"SendNATPMPPublicAddressChangeNotification", sockets[j], NATPMP_NOTIF_PORT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue