diff --git a/programs/develop/libraries/menuetlibc/include/menuet/net.h b/programs/develop/libraries/menuetlibc/include/menuet/net.h index 5fb225369..72b92cbf8 100755 --- a/programs/develop/libraries/menuetlibc/include/menuet/net.h +++ b/programs/develop/libraries/menuetlibc/include/menuet/net.h @@ -27,7 +27,7 @@ extern "C" { #define SOCK_RAW 3 // Socket options -#define SO_NONBLOCK ((long)(1)) +#define SO_NONBLOCK 1 << 31 // IP protocols #define IPPROTO_IP 0 @@ -57,13 +57,13 @@ extern "C" { #define AI_SUPPORTED 0x40F // For system function 76 -#define API_ETH ((int)(0)) -#define API_IPv4 ((int)(1)) -#define API_ICMP ((int)(2)) -#define API_UDP ((int)(3)) -#define API_TCP ((int)(4)) -#define API_ARP ((int)(5)) -#define API_PPPOE ((int)(6)) +#define API_ETH 0 << 16 +#define API_IPv4 1 << 16 +#define API_ICMP 2 << 16 +#define API_UDP 3 << 16 +#define API_TCP 4 << 16 +#define API_ARP 5 << 16 +#define API_PPPOE 6 << 16 // Socket flags for user calls #define MSG_PEEK 0x02 diff --git a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c index fd20fc619..fa8fa43f8 100755 --- a/programs/develop/libraries/menuetlibc/src/libc/net/socket.c +++ b/programs/develop/libraries/menuetlibc/src/libc/net/socket.c @@ -47,8 +47,6 @@ int recv(int sockfd, void *buf, int len, int flags) return __ret; } - - // -------------------------------------------------------------- __u32 __menuet__open_UDP_socket(__u32 local_port,__u32 remote_port,__u32 remote_ip)