5 #include "zebra/ioctl.h"
7 void ifreq_set_name (struct ifreq
*a
, struct interface
*b
) { return; }
9 int if_set_prefix (struct interface
*a
, struct connected
*b
)
11 kernel_address_add_ipv4 (a
, b
);
15 int if_unset_prefix (struct interface
*a
, struct connected
*b
)
17 kernel_address_delete_ipv4 (a
, b
);
21 int if_prefix_add_ipv6 (struct interface
*a
, struct connected
*b
) { return 0; }
22 #pragma weak if_prefix_delete_ipv6 = if_prefix_add_ipv6
24 int if_ioctl (u_long a
, caddr_t b
) { return 0; }
26 int if_set_flags (struct interface
*a
, uint64_t b
) { return 0; }
27 #pragma weak if_unset_flags = if_set_flags
29 void if_get_flags (struct interface
*a
) { return; }
30 #pragma weak if_get_metric = if_get_flags
31 #pragma weak if_get_mtu = if_get_flags
34 #pragma weak if_ioctl_ipv6 = if_ioctl
35 struct connected
*if_lookup_linklocal(struct interface
*a
) { return 0; }
37 #define AF_IOCTL(af, request, buffer) \
38 ((af) == AF_INET? if_ioctl(request, buffer) : \
39 if_ioctl_ipv6(request, buffer))
40 #else /* SOLARIS_IPV6 */
42 #define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)
44 #endif /* SOLARIS_IPV6 */