mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
Maybe it will work now?
This commit is contained in:
parent
201b69221e
commit
2c1bdf5990
@ -1109,7 +1109,8 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
const struct sockaddr * to, socklen_t tolen)
|
const struct sockaddr * to, socklen_t tolen)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
char * ipv4_addr;
|
char *ipv4_addr;
|
||||||
|
size_t maxlen;
|
||||||
if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
|
if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case EMSGSIZE:
|
case EMSGSIZE:
|
||||||
@ -1123,7 +1124,7 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
"and: %s", to->sa_family,
|
"and: %s", to->sa_family,
|
||||||
inet_ntop(to->sa_family,
|
inet_ntop(to->sa_family,
|
||||||
&(((struct sockaddr_in*)to)->sin_addr),
|
&(((struct sockaddr_in*)to)->sin_addr),
|
||||||
ipv4_addr, sizeof ipv4_addr),
|
ipv4_addr, maxlen),
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
default:
|
default:
|
||||||
error("inet_sendto: Cannot send(): %s", strerror(errno));
|
error("inet_sendto: Cannot send(): %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user