libnet.h
Go to the documentation of this file.
1 /*
2  * libnet
3  * libnet.h - Network routine library header file
4  * include/libnet.h. Generated from libnet.h.in by configure.
5  *
6  * Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com>
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  * notice, this list of conditions and the following disclaimer in the
16  * documentation and/or other materials provided with the distribution.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28  * SUCH DAMAGE.
29  *
30  */
31 
32 #ifndef __LIBNET_H
33 #define __LIBNET_H
34 
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
70 
71  /*
72  * TODO move the stuff we ALWAYS need out of the DOXYGEN ifndef block
73  * and minimize their redundancies (see doc/TODO)
74  */
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS // mess
76 #include <stdio.h>
77 #include <string.h>
78 #include <fcntl.h>
79 #include <signal.h>
80 #include <stdlib.h>
81 
82 #include <sys/stat.h>
83 #include <sys/types.h>
84 #include <ctype.h>
85 
86 #include <errno.h>
87 #include <stdarg.h>
88 
89 #if !defined(_MSC_VER)
90 #include <unistd.h>
91 #endif
92 
93 #if defined(HAVE_SYS_SOCKIO_H) && !defined(SIOCGIFADDR)
94 #include <sys/sockio.h>
95 #endif
96 
97 #if !defined(__WIN32__)
98 #include <sys/ioctl.h>
99 #include <sys/socket.h>
100 #include <net/if.h>
101 #include <arpa/inet.h>
102 #include <sys/time.h>
103 #include <netdb.h>
104 #else /* __WIN32__ */
105 #if (__CYGWIN__)
106 #include <sys/socket.h>
107 #endif
108 #include <stdint.h>
109 #include <ws2tcpip.h>
110 #include <windows.h>
111 #include <winsock2.h>
112 #endif /* __WIN32__ */
113 
114 #if (HAVE_NET_ETHERNET_H)
115 #include <net/ethernet.h>
116 #endif /* HAVE_NET_ETHERNET_H */
117 
118 #define LIBNET_VERSION "1.2-rc3"
119 
120 #define LIBNET_LIL_ENDIAN 1
121 
122 #ifndef LIBNET_API
123 #define LIBNET_API
124 #endif
125 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
126 
127 #include "./libnet/libnet-types.h"
128 #include "./libnet/libnet-macros.h"
129 #include "./libnet/libnet-headers.h"
130 #include "./libnet/libnet-structures.h"
131 #include "./libnet/libnet-asn1.h"
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* __LIBNET_H */
139 
140 /* EOF */
libnet exported function prototypes
libnet macros and symbolic constants

Documentation for libnet (version 1.2-rc3).
Generated on Wed Apr 26 2017 by Doxygen 1.8.14.