00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __LIBNET_H
00033 #define __LIBNET_H
00034
00058 #ifdef __cplusplus
00059 extern "C" {
00060 #endif
00061
00062 #include <stdio.h>
00063 #include <string.h>
00064 #include <unistd.h>
00065 #include <fcntl.h>
00066 #include <signal.h>
00067 #include <stdlib.h>
00068
00069 #if !defined(__WIN32__)
00070 # include <sys/ioctl.h>
00071 #endif
00072
00073 #if defined(HAVE_SYS_SOCKIO_H) && !defined(SIOCGIFADDR)
00074 # include <sys/sockio.h>
00075 #endif
00076
00077 #include <sys/stat.h>
00078 #include <sys/types.h>
00079 #include <ctype.h>
00080
00081 #if !defined(__WIN32__)
00082 # include <sys/socket.h>
00083 # include <netinet/in.h>
00084 # include <net/if.h>
00085 #else
00086 # if (__CYGWIN__)
00087 # include <sys/socket.h>
00088 # endif
00089 # include <ws2tcpip.h>
00090 # include <windows.h>
00091 # include <winsock2.h>
00092 # include <win32/in_systm.h>
00093 #endif
00094
00095 #if !(__linux__) && !(__WIN32__) && !(__APPLE__) && !(__CYGWIN__) && !(__GNU__)
00096 #else
00097 # if (HAVE_NET_ETHERNET_H)
00098 # include <net/ethernet.h>
00099 # endif
00100 #endif
00101
00102 #if !defined(__WIN32__)
00103 # include <arpa/inet.h>
00104 # include <sys/time.h>
00105 # include <netdb.h>
00106 #endif
00107
00108 #include <errno.h>
00109 #include <stdarg.h>
00110
00111 #define LIBNET_VERSION "1.1.5"
00112
00113 #define LIBNET_LIL_ENDIAN 1
00114
00115 #include "./libnet/libnet-types.h"
00116 #include "./libnet/libnet-macros.h"
00117 #include "./libnet/libnet-headers.h"
00118 #include "./libnet/libnet-structures.h"
00119 #include "./libnet/libnet-asn1.h"
00120 #include "./libnet/libnet-functions.h"
00121
00122 #ifdef __cplusplus
00123 }
00124 #endif
00125
00126 #endif
00127
00128