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 <jbonor@gmail.com>
This commit is contained in:
Jorge Boncompte 2017-07-25 12:26:13 +02:00
parent 7733c6c419
commit 43e3130587

View File

@ -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;