summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog4
-rw-r--r--zebra/zserv.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index 1e453ae8..c3c88e85 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,6 +1,10 @@
2005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
+ * zserv.c: Always provied distance for route add
+
+2005-09-28 Alain Ritoux <alain.ritoux@6wind.com>
+
* connected.c: flag connected_up_ipv6() and connected_down_ipv6()
usage with HAVE_IPV6
diff --git a/zebra/zserv.c b/zebra/zserv.c
index 872ddb85..abd99cdc 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -486,6 +486,8 @@ zsend_route_multipath (int cmd, struct zserv *client, struct prefix *p,
/* Metric */
if (cmd == ZEBRA_IPV4_ROUTE_ADD || ZEBRA_IPV6_ROUTE_ADD)
{
+ SET_FLAG (zapi_flags, ZAPI_MESSAGE_DISTANCE);
+ stream_putc (s, rib->distance);
SET_FLAG (zapi_flags, ZAPI_MESSAGE_METRIC);
stream_putl (s, rib->metric);
}