ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include <ctype.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
-#include <net/if.h>
#include <errno.h>
#include <fcntl.h>
-#include <netdb.h>
#include <signal.h>
#include <sys/signal.h>
-#include <netinet/in.h>
-#include <netinet/in_systm.h>
-#include <arpa/inet.h>
-#include <netinet/ip.h>
#include <regex.h>
+#include "asterisk/network.h"
+
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/config.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
+#include "asterisk/network.h"
+
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
#include <sys/ioctl.h>
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
#include <fcntl.h>
#include <net/route.h>
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/nameser.h>
+#include "asterisk/network.h"
+#include <arpa/nameser.h> /* res_* functions */
#include <resolv.h>
#include "asterisk/logger.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <resolv.h>
#include <regex.h>
#include <signal.h>
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
#include <fcntl.h>
-#include <net/route.h>
#endif
#if defined (SOLARIS)
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
#include <fcntl.h>
#include "asterisk/rtp.h"
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
#include <fcntl.h>
#include "asterisk/udptl.h"