00001 #ifndef _system_network_h
00002 #define _system_network_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifdef HAVE_SYS_SOCKET_H
00026 #include <sys/socket.h>
00027 #endif
00028
00029 #ifdef HAVE_UNIXSOCKET
00030 #include <sys/un.h>
00031 #endif
00032
00033 #ifdef HAVE_NETINET_IN_H
00034 #include <netinet/in.h>
00035 #endif
00036 #ifdef HAVE_ARPA_INET_H
00037 #include <arpa/inet.h>
00038 #endif
00039
00040 #ifdef HAVE_NETDB_H
00041 #include <netdb.h>
00042 #endif
00043
00044 #ifdef HAVE_NETINET_TCP_H
00045 #include <netinet/tcp.h>
00046 #endif
00047
00048
00049
00050
00051
00052
00053 #ifdef HAVE_NETINET_IN_SYSTM_H
00054 #include <netinet/in_systm.h>
00055 #endif
00056
00057 #ifdef HAVE_NETINET_IN_IP_H
00058 #include <netinet/in_ip.h>
00059 #endif
00060
00061 #ifdef HAVE_NETINET_IP_H
00062 #include <netinet/ip.h>
00063 #endif
00064
00065 #ifdef HAVE_NET_IF_H
00066 #include <net/if.h>
00067 #endif
00068
00069 #ifdef HAVE_UNISTD_H
00070 #include <unistd.h>
00071 #endif
00072
00073 #ifdef HAVE_SYS_IOCTL_H
00074 #include <sys/ioctl.h>
00075 #endif
00076
00077 #ifdef HAVE_STROPTS_H
00078 #include <stropts.h>
00079 #endif
00080
00081 #ifdef SOCKET_WRAPPER
00082 #ifndef SOCKET_WRAPPER_NOT_REPLACE
00083 #define SOCKET_WRAPPER_REPLACE
00084 #endif
00085 #include "lib/socket_wrapper/socket_wrapper.h"
00086 #endif
00087
00088 #ifdef REPLACE_INET_NTOA
00089 char *rep_inet_ntoa(struct in_addr ip);
00090 #define inet_ntoa rep_inet_ntoa
00091 #endif
00092
00093
00094
00095
00096
00097 #ifndef MSG_WAITALL
00098 #define MSG_WAITALL 0
00099 #endif
00100
00101
00102
00103
00104
00105 #ifndef MAXHOSTNAMELEN
00106 #define MAXHOSTNAMELEN 254
00107 #endif
00108
00109 #ifndef INADDR_LOOPBACK
00110 #define INADDR_LOOPBACK 0x7f000001
00111 #endif
00112
00113 #ifndef INADDR_NONE
00114 #define INADDR_NONE 0xffffffff
00115 #endif
00116
00117 #endif