Paul Jakma | 457eb9a | 2006-07-27 19:59:58 +0000 | [diff] [blame] | 1 | #include <zebra.h> |
| 2 | |
| 3 | #include "zebra/rib.h" |
| 4 | #include "zebra/rt.h" |
| 5 | #include "zebra/ioctl.h" |
| 6 | |
| 7 | void ifreq_set_name (struct ifreq *a, struct interface *b) { return; } |
| 8 | |
| 9 | int if_set_prefix (struct interface *a, struct connected *b) { return 0; } |
| 10 | #pragma weak if_unset_prefix = if_set_prefix |
| 11 | #pragma weak if_prefix_add_ipv6 = if_set_prefix |
| 12 | #pragma weak if_prefix_delete_ipv6 = if_set_prefix |
| 13 | |
| 14 | int if_ioctl (u_long a, caddr_t b) { return 0; } |
| 15 | |
| 16 | int if_set_flags (struct interface *a, uint64_t b) { return 0; } |
| 17 | #pragma weak if_unset_flags = if_set_flags |
| 18 | |
| 19 | void if_get_flags (struct interface *a) { return; } |
| 20 | #pragma weak if_get_metric = if_get_flags |
| 21 | #pragma weak if_get_mtu = if_get_flags |
| 22 | |
| 23 | #ifdef SOLARIS_IPV6 |
| 24 | #pragma weak if_ioctl_ipv6 = if_ioctl |
| 25 | struct connected *if_lookup_linklocal(struct interface *a) { return 0; } |
| 26 | |
| 27 | #define AF_IOCTL(af, request, buffer) \ |
| 28 | ((af) == AF_INET? if_ioctl(request, buffer) : \ |
| 29 | if_ioctl_ipv6(request, buffer)) |
| 30 | #else /* SOLARIS_IPV6 */ |
| 31 | |
| 32 | #define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer) |
| 33 | |
| 34 | #endif /* SOLARIS_IPV6 */ |