diff options
author | hasso <hasso> | 2005-08-27 06:05:47 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-08-27 06:05:47 +0000 |
commit | 05ecff24d81162311a2f57e8d0207b99330a5754 (patch) | |
tree | 47b3a7b60eda5a057314fed12ac5f9213eb2827e /zebra/rib.h | |
parent | 6cb71af352fd7f481ed0a3638f8b80aba17dbbb7 (diff) | |
download | quagga-05ecff24d81162311a2f57e8d0207b99330a5754.tar.bz2 quagga-05ecff24d81162311a2f57e8d0207b99330a5754.tar.xz |
* zebra_rib.c, rib.h: Add distance and metric arguments to the
rib_add_ipv6() function so that IPv6 routes in RIB can have correct
metric. No IPv6 routing daemon uses distance yet though.
* zserv.c, connected.c, kernel_socket.c, rt_netlink.c,
rtread_proc.c,zserv.c: Pass metric and distance info to the
rib_add_ipv6().
Forwardport from stable branch.
Diffstat (limited to 'zebra/rib.h')
-rw-r--r-- | zebra/rib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index dbd2a6b1..12ed8b7c 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -244,7 +244,8 @@ static_delete_ipv4 (struct prefix *p, struct in_addr *gate, const char *ifname, #ifdef HAVE_IPV6 extern int rib_add_ipv6 (int type, int flags, struct prefix_ipv6 *p, - struct in6_addr *gate, unsigned int ifindex, u_int32_t vrf_id); + struct in6_addr *gate, unsigned int ifindex, u_int32_t vrf_id, + u_int32_t metric, u_char distance); extern int rib_delete_ipv6 (int type, int flags, struct prefix_ipv6 *p, |