Added SOCK_RAW, SOCK_RDM, SOCK_SEQPACKET, SO_DEBUG, SO_ERROR.
};
#endif
-
-char *inet_ntoa(struct in_addr in);
+_PROTOTYPE( uint32_t htonl, (uint32_t _hostval) );
+_PROTOTYPE( uint16_t htons, (uint16_t _hostval) );
+_PROTOTYPE( char *inet_ntoa, (struct in_addr _in) );
+_PROTOTYPE( uint32_t ntohl, (uint32_t _netval) );
+_PROTOTYPE( uint16_t ntohs, (uint16_t _netval) );
#endif /* _ARPA__INET_H */
/* Protocols */
#define IPPROTO_IP 0 /* Dummy protocol */
+#define IPPROTO_TCP 6 /* TCP */
/* setsockopt options at IP level */
#define IP_ADD_MEMBERSHIP 12
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
+#define SOCK_RAW 3
+#define SOCK_RDM 4
+#define SOCK_SEQPACKET 5
#define SOL_SOCKET 0xFFFF
+#define SO_DEBUG 0x0001
#define SO_REUSEADDR 0x0004
#define SO_KEEPALIVE 0x0008
+#define SO_ERROR 0x1007
+
/* The how argument to shutdown */
#define SHUT_RD 0 /* No further reads */
#define SHUT_WR 1 /* No further writes */
/* Open Group Base Specifications Issue 6 */
-#ifndef SA_FAMILY_T
-#define SA_FAMILY_T
+#ifndef _SA_FAMILY_T
+#define _SA_FAMILY_T
/* Should match corresponding typedef in <sys/socket.h> */
typedef uint8_t sa_family_t;
-#endif /* SA_FAMILY_T */
+#endif /* _SA_FAMILY_T */
struct sockaddr_un
{