summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl.h
diff options
context:
space:
mode:
authorpaul <paul>2004-05-11 11:31:07 +0000
committerpaul <paul>2004-05-11 11:31:07 +0000
commitbc31adf9615dc5bff8c7e2e283628bf9b87fdb95 (patch)
tree39e976e649f9840985ebdc31f4a833de564ab68c /zebra/ioctl.h
parentda03761bfc1a250bb29bc3543ff3e239cf864485 (diff)
downloadquagga-bc31adf9615dc5bff8c7e2e283628bf9b87fdb95.tar.bz2
quagga-bc31adf9615dc5bff8c7e2e283628bf9b87fdb95.tar.xz
2004-05-11 Paul Jakma <paul@dishone.st>
* ioctl.h: Add if_ioctl_ipv6 prototype and AF_IOCTL for SOLARIS_IPV6 * kernel_socket.c: Fix SAROUNDUP, compiler doesnt like do..while RHS in assignments :) * redistribute.c: (zebra_interface_delete_update) only used if RTM_IFANNOUNCE and NETLINK is available.
Diffstat (limited to 'zebra/ioctl.h')
-rw-r--r--zebra/ioctl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/zebra/ioctl.h b/zebra/ioctl.h
index 157fc44e..eadc69a0 100644
--- a/zebra/ioctl.h
+++ b/zebra/ioctl.h
@@ -40,7 +40,15 @@ void if_get_mtu (struct interface *);
#ifdef HAVE_IPV6
int if_prefix_add_ipv6 (struct interface *, struct connected *);
int if_prefix_delete_ipv6 (struct interface *, struct connected *);
-
#endif /* HAVE_IPV6 */
+#ifdef SOLARIS_IPV6
+int if_ioctl_ipv6(u_long, caddr_t);
+struct connected *if_lookup_linklocal( struct interface *);
+
+#define AF_IOCTL(af, request, buffer) \
+ ((af) == AF_INET? if_ioctl(request, buffer) : \
+ if_ioctl_ipv6(request, buffer))
+#endif /* SOLARIS_IPV6 */
+
#endif /* _ZEBRA_IOCTL_H */