mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
Added Packet Successfully sent text plus errno for inet_sendto.
This commit is contained in:
parent
d6986b3f4d
commit
ae7fc0ee70
@ -1121,7 +1121,7 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
inet_send(s, msg, len/2, flags);
|
inet_send(s, msg, len/2, flags);
|
||||||
err=inet_send(s, (const char *)msg+(len/2),
|
err=inet_send(s, (const char *)msg+(len/2),
|
||||||
len-(len/2), flags);
|
len-(len/2), flags);
|
||||||
error("\nsendto error after fragmention is: %d, err is: %d \n", errno, err);
|
error("\nsendto error after fragmention is: %d, err is: %d\n", errno, err);
|
||||||
break;
|
break;
|
||||||
case EFAULT:
|
case EFAULT:
|
||||||
error("The value of to is: %d", to);
|
error("The value of to is: %d", to);
|
||||||
@ -1130,6 +1130,9 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
|
|||||||
return err;
|
return err;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error("\nSuccessfully sent packet, errno: %d\n", errno);
|
||||||
|
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user