fix ipv6 lease remaining time in dhcp leases file. Now behaves
[tomato.git] / release / src / router / radvd / includes.h
blobebd14d5d966698295546926eef7d14b2a790d5da
1 /*
2 * $Id: includes.h,v 1.15 2010/12/14 11:58:21 psavola Exp $
4 * Authors:
5 * Lars Fenneberg <lf@elemental.net>
7 * This software is Copyright 1996,1997 by the above mentioned author(s),
8 * All Rights Reserved.
10 * The license which is distributed with this software in the file COPYRIGHT
11 * applies to this software. If your distribution is missing this file, you
12 * may request it from <pekkas@netcore.fi>.
16 #ifndef INCLUDES_H
17 #define INCLUDES_H
19 #include "config.h"
21 #include <string.h>
22 #include <stdio.h>
23 #include <stdarg.h>
24 #include <stdlib.h>
25 #include <time.h>
26 #include <syslog.h>
27 #include <unistd.h>
28 #include <errno.h>
29 #include <signal.h>
30 #include <netdb.h>
31 #include <pwd.h>
32 #include <grp.h>
34 #include <sys/types.h>
35 #ifdef HAVE_INTTYPES_H
36 # include <inttypes.h>
37 #endif
39 #ifdef HAVE_SYS_PARAM_H
40 # include <sys/param.h>
41 #else
42 # ifdef HAVE_MACHINE_PARAM_H
43 # include <machine/param.h>
44 # endif
45 # ifdef HAVE_MACHINE_LIMITS_H
46 # include <machine/limits.h>
47 # endif
48 #endif
50 #if TIME_WITH_SYS_TIME
51 # include <sys/time.h>
52 # include <time.h>
53 #else
54 # if HAVE_SYS_TIME_H
55 # include <sys/time.h>
56 # else
57 # include <time.h>
58 # endif
59 #endif
61 #include <sys/ioctl.h>
62 #include <sys/socket.h>
63 #include <sys/time.h>
64 #include <sys/uio.h>
66 #include <sys/stat.h>
67 #include <fcntl.h>
69 #include <netinet/in.h>
71 #include <netinet/ip6.h>
72 #include <netinet/icmp6.h>
74 #include <arpa/inet.h>
76 #include <sys/sysctl.h>
78 #include <net/if.h>
80 #ifdef HAVE_NET_IF_DL_H
81 # include <net/if_dl.h>
82 #endif
83 #ifdef HAVE_NET_IF_TYPES_H
84 # include <net/if_types.h>
85 #endif
86 #if defined(HAVE_NET_IF_ARP_H) && !defined(ARPHRD_ETHER)
87 # include <net/if_arp.h>
88 #endif /* defined(HAVE_NET_IF_ARP_H) && !defined(ARPHRD_ETHER) */
90 #ifdef HAVE_SYS_SOCKIO_H
91 # include <sys/sockio.h>
92 #endif
94 #ifdef HAVE_GETOPT_H
95 # include <getopt.h>
96 #endif
98 #ifdef HAVE_IFADDRS_H
99 # include <ifaddrs.h>
100 #endif
102 #endif /* INCLUDES_H */