diff options
author | paul <paul> | 2004-05-09 09:09:59 +0000 |
---|---|---|
committer | paul <paul> | 2004-05-09 09:09:59 +0000 |
commit | b9df2d25fc8d06ca63fa792d162d97656361338b (patch) | |
tree | 53ec5975f608983b5cb95ee38ca112934db5e609 /zebra/zserv.h | |
parent | 0a5893596774554f039222c481d235de0f35d99e (diff) |
2004-05-09 Paul Jakma <paul@dishone.st>
* zserv.c: (zsend_route_multipath) Set the nexthop_num
field correctly. Add NEXTHOP_TYPE_IPV6_IFNAME for v6.
Conditionally set ZAPI_MESSAGE_METRIC flag - only for adds.
(zsend_ipv4_add) cruft, deleted.
(zsend_ipv4_delete) ditto.
(zsend_ipv6_add) ditto.
(zsend_ipv6_delete) ditto.
2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com>
* zserv.c: (zsend_ipv{4,6}_{add,delete}_multipath) collapsed
into single zsend_route_multipath function.
(zsend_interface_{up,down}) collapsed into zsend_interface_update.
(zsend_interface_address_{add,delete}) collapsed into
zsend_interface_address.
(zsend_interface_add) send mtu6.
(zsend_interface_delete) ditto.
(zebra_write) remove unused function.
(various) Apply static qualifier. Add comments.
* zserv.h: Definitions changed as per above.
* redistribute.c: Changes as per zserv.c.
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 65 |
1 files changed, 7 insertions, 58 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index 42fb64c6..f043099b 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -82,65 +82,14 @@ void route_read (); void rtadv_init (); void zebra_snmp_init (); -int -zsend_interface_add (struct zserv *, struct interface *); -int -zsend_interface_delete (struct zserv *, struct interface *); - -int -zsend_interface_address_add (struct zserv *, struct interface *, - struct connected *); - -int -zsend_interface_address_delete (struct zserv *, struct interface *, - struct connected *); - -int -zsend_interface_up (struct zserv *, struct interface *); - -int -zsend_interface_down (struct zserv *, struct interface *); - -#if 0 -#warning oldies -int -zsend_ipv4_add (struct zserv *client, int type, int flags, - struct prefix_ipv4 *p, struct in_addr *nexthop, - unsigned int ifindex); - -int -zsend_ipv4_delete (struct zserv *client, int type, int flags, - struct prefix_ipv4 *p, struct in_addr *nexthop, - unsigned int ifindex); +int zsend_interface_add (struct zserv *, struct interface *); +#if (defined(RTM_IFANNOUNCE) || defined(HAVE_NETLINK)) +int zsend_interface_delete (struct zserv *, struct interface *); #endif - -int -zsend_ipv4_add_multipath (struct zserv *, struct prefix *, struct rib *); - -int -zsend_ipv4_delete_multipath (struct zserv *, struct prefix *, struct rib *); - -#ifdef HAVE_IPV6 -#if 0 -#warning oldies -int -zsend_ipv6_add (struct zserv *client, int type, int flags, - struct prefix_ipv6 *p, struct in6_addr *nexthop, - unsigned int ifindex); - -int -zsend_ipv6_delete (struct zserv *client, int type, int flags, - struct prefix_ipv6 *p, struct in6_addr *nexthop, - unsigned int ifindex); -#endif - -int -zsend_ipv6_add_multipath (struct zserv *, struct prefix *, struct rib *); - -int -zsend_ipv6_delete_multipath (struct zserv *, struct prefix *, struct rib *); - -#endif /* HAVE_IPV6 */ +int zsend_interface_address (int, struct zserv *, struct interface *, + struct connected *); +int zsend_interface_update (int, struct zserv *, struct interface *); +int zsend_route_multipath (int, struct zserv *, struct prefix *, struct rib *); extern pid_t pid; extern pid_t old_pid; |