equal
deleted
inserted
replaced
16 #include <compat.h> |
16 #include <compat.h> |
17 |
17 |
18 #include <sys/dlpi.h> |
18 #include <sys/dlpi.h> |
19 #include <libdlpi.h> |
19 #include <libdlpi.h> |
20 |
20 |
|
21 #include <inet/ip.h> |
|
22 |
21 #define LOOPBACK_IF "lo0" |
23 #define LOOPBACK_IF "lo0" |
22 |
24 |
23 #define NONE_STR "none" |
25 #define NONE_STR "none" |
24 |
26 |
25 #ifndef ARP_MOD_NAME |
27 #ifndef ARP_MOD_NAME |
26 #define ARP_MOD_NAME "arp" |
28 #define ARP_MOD_NAME "arp" |
27 #endif |
|
28 |
|
29 #ifndef IP_DEV_NAME |
|
30 #define IP_DEV_NAME "/dev/ip" |
|
31 #endif |
|
32 |
|
33 #ifndef IP_MOD_NAME |
|
34 #define IP_MOD_NAME "ip" |
|
35 #endif |
|
36 |
|
37 #ifndef IP6_DEV_NAME |
|
38 #define IP6_DEV_NAME "/dev/ip6" |
|
39 #endif |
|
40 |
|
41 #ifndef UDP_DEV_NAME |
|
42 #define UDP_DEV_NAME "/dev/udp" |
|
43 #endif |
|
44 |
|
45 #ifndef UDP6_DEV_NAME |
|
46 #define UDP6_DEV_NAME "/dev/udp6" |
|
47 #endif |
29 #endif |
48 |
30 |
49 #define ADDRBITS_V4 32 /* number of bits in IPv4 address */ |
31 #define ADDRBITS_V4 32 /* number of bits in IPv4 address */ |
50 #define ADDRBITS_V6 128 /* number of bits in IPv6 address */ |
32 #define ADDRBITS_V6 128 /* number of bits in IPv6 address */ |
51 |
33 |