mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
Experimental Debug text fixes.
This commit is contained in:
parent
cfa05e3a64
commit
67b7f162ff
11
src/inet.c
11
src/inet.c
@ -1117,9 +1117,16 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
len-(len/2), flags, to, tolen);
|
len-(len/2), flags, to, tolen);
|
||||||
break;
|
break;
|
||||||
case EFAULT:
|
case EFAULT:
|
||||||
|
|
||||||
|
char ipv4_addr;
|
||||||
|
|
||||||
error("To Family is: %hu "
|
error("To Family is: %hu "
|
||||||
"To Data is: %c "
|
"To Data is: %s "
|
||||||
"and: %s", to->sa_family, to->sa_data[14], strerror(errno));
|
"and: %s", to->sa_family,
|
||||||
|
inet_ntop(to->sa_family,
|
||||||
|
&(((struct sockaddr_in*)to)->sin_addr),
|
||||||
|
ipv4_addr, sizeof ipv4_addr),
|
||||||
|
strerror(errno));
|
||||||
default:
|
default:
|
||||||
error("inet_sendto: Cannot send(): %s", strerror(errno));
|
error("inet_sendto: Cannot send(): %s", strerror(errno));
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user