From: Jorge Boncompte Date: Tue, 25 Jul 2017 10:26:13 +0000 (+0200) Subject: zebra: copy MTU from non static routes into nexthop X-Git-Tag: frr-4.0-dev~455^2~8 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=43e31305875b5c3ea2f9f27f99ee6f42c1186c80;p=mirror%2Ffrr.git 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 --- 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;