From c713300ab429c8779be98ec3c8dc888821405d55 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 17 Jan 2006 17:56:18 +0000 Subject: [zebra] Include metric on connected routes. 2006-01-17 Gunnar Stigen * connected.c: (connected_up_ipv{4,6}) Include interface metric on connected routes. --- zebra/connected.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'zebra/connected.c') 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 (); } -- cgit v1.2.1