mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
okay, so I will need to find another way to display an ipv4 address in a human readable format.
This commit is contained in:
parent
67b7f162ff
commit
201b69221e
@ -1109,6 +1109,7 @@ 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;
|
||||||
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:
|
||||||
@ -1117,9 +1118,6 @@ 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: %s "
|
"To Data is: %s "
|
||||||
"and: %s", to->sa_family,
|
"and: %s", to->sa_family,
|
||||||
|
Loading…
Reference in New Issue
Block a user