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));
|
||||
if(n < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d): %m",
|
||||
"SendNATPMPPublicAddressChangeNotification", sockets[j]);
|
||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d, port=%d): %m",
|
||||
"SendNATPMPPublicAddressChangeNotification", sockets[j], NATPMP_PORT);
|
||||
return;
|
||||
}
|
||||
/* 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));
|
||||
if(n < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d): %m",
|
||||
"SendNATPMPPublicAddressChangeNotification", sockets[j]);
|
||||
syslog(LOG_ERR, "%s: sendto(s_udp=%d, port=%d): %m",
|
||||
"SendNATPMPPublicAddressChangeNotification", sockets[j], NATPMP_NOTIF_PORT);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue