diff options
author | paul <paul> | 2004-05-11 11:31:07 +0000 |
---|---|---|
committer | paul <paul> | 2004-05-11 11:31:07 +0000 |
commit | c50ae8baf610d3d041fdedb78df205c999be57a9 (patch) | |
tree | ceced067b2a3209b708c90787b4f870f43fec180 /zebra/redistribute.c | |
parent | 48a46fa0c35f8f46e482ed1fef8b4bf63e413e0a (diff) |
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/redistribute.c')
-rw-r--r-- | zebra/redistribute.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index ae61a448..a4335c17 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -347,6 +347,12 @@ zebra_interface_add_update (struct interface *ifp) zsend_interface_add (client, ifp); } +/* + * This function is only called when support for + * RTM_IFANNOUNCE or AF_NETLINK sockets (RTM_DELLINK message) + * is available. It is not called on Solaris. + */ +#if (defined(RTM_IFANNOUNCE) || defined(HAVE_NETLINK)) void zebra_interface_delete_update (struct interface *ifp) { @@ -361,6 +367,7 @@ zebra_interface_delete_update (struct interface *ifp) if (client->ifinfo) zsend_interface_delete (client, ifp); } +#endif /* defined(RTM_IFANNOUNCE) || defined(HAVE_NETLINK) */ /* Interface address addition. */ void |