1
#if defined(CAN_USE_SYSCTL)
10
#include <sys/queue.h>
11
#include <sys/socket.h>
12
#include <sys/sysctl.h>
17
#include <net/if_dl.h>
19
#include <sys/stream.h>
21
#include <net/route.h>
22
#include <netinet/in.h>
24
#include <net-snmp/net-snmp-includes.h>
25
#include <net-snmp/agent/net-snmp-agent-includes.h>
29
#include "interfaces.h"
31
#include "util_funcs.h"
33
#else /* !CAN_USE_SYSCTL */
35
#define GATEWAY /* MultiNet is always configured this way! */
37
#include <sys/types.h>
39
#include <sys/param.h>
42
#include <sys/socket.h>
44
#if TIME_WITH_SYS_TIME
46
# include <sys/timeb.h>
48
# include <sys/time.h>
53
# include <sys/time.h>
59
#include <sys/select.h>
62
#include <netinet/in.h>
65
#include <arpa/inet.h>
70
#if HAVE_MACHINE_PARAM_H
71
#include <machine/param.h>
79
#ifdef HAVE_NET_IF_VAR_H
80
#include <net/if_var.h>
82
#if HAVE_SYS_HASHING_H
83
#include <sys/hashing.h>
85
#if HAVE_NETINET_IN_VAR_H
86
#include <netinet/in_var.h>
88
#define KERNEL /* to get routehash and RTHASHSIZ */
90
#include <sys/stream.h>
93
#include <net/route.h>
97
#ifndef STRUCT_RTENTRY_HAS_RT_UNIT
98
#define rt_unit rt_refcnt /* Reuse this field for device # */
100
#ifndef STRUCT_RTENTRY_HAS_RT_DST
101
#define rt_dst rt_nodes->rn_key
103
#else /* RTENTRY_4_3 */
104
#ifndef STRUCT_RTENTRY_HAS_RT_DST
105
#define rt_dst rt_nodes->rn_key
107
#ifndef STRUCT_RTENTRY_HAS_RT_HASH
108
#define rt_hash rt_pad1
110
#ifndef STRUCT_RTENTRY_HAS_RT_REFCNT
112
#define rt_refcnt rt_pad2
115
#ifndef STRUCT_RTENTRY_HAS_RT_USE
116
#define rt_use rt_pad3
118
#ifndef STRUCT_RTENTRY_HAS_RT_UNIT
119
#define rt_unit rt_refcnt /* Reuse this field for device # */
125
#if HAVE_KVM_OPENFILES
141
#include <inet/mib2.h>
143
#if HAVE_SYS_SYSCTL_H
144
#include <sys/sysctl.h>
148
#include <net/if_dl.h>
150
#include <sys/net/if_dl.h>
163
#include "kernel_sunos5.h"
166
#ifdef HAVE_SYS_SYSCTL_H
170
# define USE_SYSCTL_ROUTE_DUMP
185
#endif /* !CAN_USE_SYSCTL */