mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
it should finally be fixed.
This commit is contained in:
parent
8bc5d69758
commit
247d4895e9
@ -1117,11 +1117,13 @@ 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:
|
||||||
|
/* Must be modified to accept IPv6 addresses
|
||||||
|
* when IPv6 support is activated. */
|
||||||
error("Bad Address\n"
|
error("Bad Address\n"
|
||||||
"To Family is: %hu "
|
"To Family is: %hu "
|
||||||
"To Data is: %s",
|
"To Data is: %s",
|
||||||
to->sa_family,
|
to->sa_family,
|
||||||
inet_ntoa( &( ((struct sockaddr_in*)to)->sin_addr ) ));
|
inet_ntoa( ( ((struct sockaddr_in*)to)->sin_addr ) ));
|
||||||
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