diff --git a/libc/include/netinet/in.h b/libc/include/netinet/in.h index 6c31ca96..87ddedf6 100644 --- a/libc/include/netinet/in.h +++ b/libc/include/netinet/in.h @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. This file is part of the Sortix C Library. @@ -91,12 +91,13 @@ struct ipv6_mreq unsigned int ipv6mr_interface; }; -#define IPPROTO_IP 0 -#define IPPROTO_IPV6 1 -#define IPPROTO_ICMP 2 -#define IPPROTO_RAW 3 -#define IPPROTO_TCP 4 -#define IPPROTO_UDP 5 +/* #define SOL_SOCKET 0 - in */ +#define IPPROTO_ICMP 1 +#define IPPROTO_IP 2 +#define IPPROTO_IPV6 3 +#define IPPROTO_RAW 4 +#define IPPROTO_TCP 5 +#define IPPROTO_UDP 6 #define INADDR_ANY ((in_addr_t) 0x00000000) #define INADDR_BROADCAST ((in_addr_t) 0xffffffff) diff --git a/libc/include/sys/socket.h b/libc/include/sys/socket.h index 042f1184..e3ca149b 100644 --- a/libc/include/sys/socket.h +++ b/libc/include/sys/socket.h @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. This file is part of the Sortix C Library. @@ -106,8 +106,10 @@ struct linger int l_linger; }; -#define SOL_SOCKET 1 +#define SOL_SOCKET 0 +/* #define IPPROTO_* constants follow numerically. */ +/* Options at the SOL_SOCKET socket level. */ #define SO_ACCEPTCONN 1 #define SO_BROADCAST 2 #define SO_DEBUG 3