summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorpaul <paul>2006-01-17 17:56:18 +0000
committerpaul <paul>2006-01-17 17:56:18 +0000
commitc713300ab429c8779be98ec3c8dc888821405d55 (patch)
treef1b6562d5583d2cb155a6076c9f52400bd993885 /zebra
parentc6371718f39dedd2a03010a9dc26a18d96abbe7f (diff)
[zebra] Include metric on connected routes.
2006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no> * connected.c: (connected_up_ipv{4,6}) Include interface metric on connected routes.
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog5
-rw-r--r--zebra/connected.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog
index bcc83645..9c014929 100644
--- a/zebra/ChangeLog
+++ b/zebra/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-17 Gunnar Stigen <gunnar.stigen@axxessit.no>
+
+ * connected.c: (connected_up_ipv{4,6}) Include interface metric on
+ connected routes.
+
2006-01-16 Paul Jakma <paul.jakma@sun.com>
* zserv.c: Read/write updated Zserv header.
diff --git a/zebra/connected.c b/zebra/connected.c
index 5417ffc5..7e4f0fc7 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -140,7 +140,8 @@ connected_up_ipv4 (struct interface *ifp, struct connected *ifc)
if (prefix_ipv4_any (&p))
return;
- rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0, 0, 0);
+ rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0,
+ ifp->metric, 0);
rib_update ();
}
@@ -322,7 +323,8 @@ connected_up_ipv6 (struct interface *ifp, struct connected *ifc)
return;
#endif
- rib_add_ipv6 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0, 0, 0);
+ rib_add_ipv6 (ZEBRA_ROUTE_CONNECT, 0, &p, NULL, ifp->ifindex, 0,
+ ifp->metric, 0);
rib_update ();
}