Blame


1 c45084ea 2005-11-29 pbug /*
2 324df6f2 2014-04-13 pjp * Copyright (c) 2005-2014 Peter J. Philipp
3 c45084ea 2005-11-29 pbug * All rights reserved.
4 c45084ea 2005-11-29 pbug *
5 c45084ea 2005-11-29 pbug * Redistribution and use in source and binary forms, with or without
6 c45084ea 2005-11-29 pbug * modification, are permitted provided that the following conditions
7 c45084ea 2005-11-29 pbug * are met:
8 c45084ea 2005-11-29 pbug * 1. Redistributions of source code must retain the above copyright
9 c45084ea 2005-11-29 pbug * notice, this list of conditions and the following disclaimer.
10 c45084ea 2005-11-29 pbug * 2. Redistributions in binary form must reproduce the above copyright
11 c45084ea 2005-11-29 pbug * notice, this list of conditions and the following disclaimer in the
12 c45084ea 2005-11-29 pbug * documentation and/or other materials provided with the distribution.
13 c45084ea 2005-11-29 pbug * 3. The name of the author may not be used to endorse or promote products
14 c45084ea 2005-11-29 pbug * derived from this software without specific prior written permission
15 c45084ea 2005-11-29 pbug *
16 c45084ea 2005-11-29 pbug * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 c45084ea 2005-11-29 pbug * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 c45084ea 2005-11-29 pbug * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 c45084ea 2005-11-29 pbug * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 c45084ea 2005-11-29 pbug * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 c45084ea 2005-11-29 pbug * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 c45084ea 2005-11-29 pbug * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 c45084ea 2005-11-29 pbug * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 c45084ea 2005-11-29 pbug * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 c45084ea 2005-11-29 pbug * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 c45084ea 2005-11-29 pbug *
27 c45084ea 2005-11-29 pbug */
28 c45084ea 2005-11-29 pbug #ifndef _INCLUDES_H
29 c45084ea 2005-11-29 pbug #define _INCLUDES_H
30 c45084ea 2005-11-29 pbug
31 c45084ea 2005-11-29 pbug #include <sys/param.h>
32 f98bb34d 2011-09-19 pbug #include <sys/ipc.h>
33 c45084ea 2005-11-29 pbug #include <sys/socket.h>
34 c45084ea 2005-11-29 pbug #include <sys/time.h>
35 c45084ea 2005-11-29 pbug #include <sys/stat.h>
36 9525851c 2009-08-31 pbug #include <sys/uio.h>
37 ed247332 2010-03-09 pbug #include <sys/queue.h>
38 06aa4e57 2011-04-12 pbug #include <sys/mman.h>
39 f98bb34d 2011-09-19 pbug #include <sys/wait.h>
40 c45084ea 2005-11-29 pbug
41 c45084ea 2005-11-29 pbug #include <net/if.h>
42 dbd9100e 2010-09-19 pbug
43 c45084ea 2005-11-29 pbug #include <netinet/in.h>
44 dbd9100e 2010-09-19 pbug #include <netinet/in_systm.h>
45 dbd9100e 2010-09-19 pbug #include <netinet/ip.h>
46 dbd9100e 2010-09-19 pbug #include <netinet/udp.h>
47 518aa971 2010-09-30 pbug #define _KERNEL 1
48 518aa971 2010-09-30 pbug #include <netinet/ip6.h>
49 518aa971 2010-09-30 pbug #undef _KERNEL
50 c45084ea 2005-11-29 pbug
51 c45084ea 2005-11-29 pbug #include <arpa/inet.h>
52 c45084ea 2005-11-29 pbug #include <netdb.h>
53 c45084ea 2005-11-29 pbug
54 c45084ea 2005-11-29 pbug #include <fcntl.h>
55 c45084ea 2005-11-29 pbug #include <stdio.h>
56 c45084ea 2005-11-29 pbug #include <stdlib.h>
57 c25e4088 2011-06-28 pbug #include <stdarg.h>
58 c45084ea 2005-11-29 pbug #include <string.h>
59 c45084ea 2005-11-29 pbug #include <unistd.h>
60 c45084ea 2005-11-29 pbug #include <errno.h>
61 c45084ea 2005-11-29 pbug #include <syslog.h>
62 c45084ea 2005-11-29 pbug #include <ctype.h>
63 c45084ea 2005-11-29 pbug #include <db.h>
64 c45084ea 2005-11-29 pbug #include <pwd.h>
65 c45084ea 2005-11-29 pbug #include <ifaddrs.h>
66 4583838f 2009-02-28 pbug #include <dirent.h>
67 b6b96cfd 2010-03-22 pbug #include <signal.h>
68 c45084ea 2005-11-29 pbug
69 1a591502 2010-03-28 pbug #ifdef __linux__
70 1a591502 2010-03-28 pbug #include <grp.h>
71 1a591502 2010-03-28 pbug #endif
72 1a591502 2010-03-28 pbug
73 9c4921a5 2008-04-10 pbug #ifndef NTOHS
74 9c4921a5 2008-04-10 pbug #include "endian.h"
75 c45084ea 2005-11-29 pbug #endif
76 9c4921a5 2008-04-10 pbug
77 50190f1e 2013-02-16 pjp #if !defined __OpenBSD__ && !defined __NetBSD__
78 df41eab0 2010-10-06 pbug struct ip6_hdr_pseudo {
79 df41eab0 2010-10-06 pbug struct in6_addr ip6ph_src;
80 df41eab0 2010-10-06 pbug struct in6_addr ip6ph_dst;
81 df41eab0 2010-10-06 pbug u_int32_t ip6ph_len;
82 df41eab0 2010-10-06 pbug u_int8_t ip6ph_zero[3];
83 df41eab0 2010-10-06 pbug u_int8_t ip6ph_nxt;
84 df41eab0 2010-10-06 pbug } __packed;
85 9c4921a5 2008-04-10 pbug #endif
86 df41eab0 2010-10-06 pbug
87 df41eab0 2010-10-06 pbug #endif