diff options
author | paul <paul> | 2004-05-09 09:09:59 +0000 |
---|---|---|
committer | paul <paul> | 2004-05-09 09:09:59 +0000 |
commit | ee3d285f3bc444ee9895977fe0e79acd8ea22825 (patch) | |
tree | 9edcdb89556c580c45e5ac1b30c36254f9563ae9 /zebra/zserv.h | |
parent | 92e2539df1fd78b3ea6e62a12133a1f3899617cf (diff) | |
download | quagga-ee3d285f3bc444ee9895977fe0e79acd8ea22825.tar.bz2 quagga-ee3d285f3bc444ee9895977fe0e79acd8ea22825.tar.xz |
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; |