libnet.h

Go to the documentation of this file.
00001 /*
00002  *  $Id: libnet.h.in,v 1.5 2004/01/17 07:51:19 mike Exp $
00003  *
00004  *  libnet.h - Network routine library header file
00005  *
00006  *  Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>
00007  *  All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions
00011  * are met:
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer.
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in the
00016  *    documentation and/or other materials provided with the distribution.
00017  *
00018  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00019  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00022  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00023  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00024  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00025  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00026  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00027  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00028  * SUCH DAMAGE.
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 /* __WIN32__ */
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 /* __WIN32__ */
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 /* __WIN32__ */
00094 
00095 #if !(__linux__) && !(__WIN32__) && !(__APPLE__) && !(__CYGWIN__) && !(__GNU__)
00096 #else   /* __linux__ */
00097 # if (HAVE_NET_ETHERNET_H)
00098 #  include <net/ethernet.h>
00099 # endif  /* HAVE_NET_ETHERNET_H */
00100 #endif  /* __linux__ */
00101 
00102 #if !defined(__WIN32__)
00103 # include <arpa/inet.h>
00104 # include <sys/time.h>
00105 # include <netdb.h>
00106 #endif /* __WIN32__ */
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  /* __LIBNET_H */
00127 
00128 /* EOF */

Generated on Mon Nov 8 16:48:16 2010 for libnet by  doxygen 1.5.3