From 43e31305875b5c3ea2f9f27f99ee6f42c1186c80 Mon Sep 17 00:00:00 2001 From: Jorge Boncompte Date: Tue, 25 Jul 2017 12:26:13 +0200 Subject: [PATCH] zebra: copy MTU from non static routes into nexthop Some routing protocols advertise route MTU (e.g. NHRP), with this patch installed routes in the kernel have the advertised MTU. Signed-off-by: Jorge Boncompte --- zebra/zebra_rib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 98508aaa89..f5ee2dff90 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -505,6 +505,8 @@ static int nexthop_active(afi_t afi, struct route_entry *re, } resolved = 1; } + if (resolved && set) + re->nexthop_mtu = match->mtu; return resolved; } else if (re->type == ZEBRA_ROUTE_STATIC) { resolved = 0; -- 2.39.5