diff options
author | Jorge Boncompte <jbonor@gmail.com> | 2017-07-25 12:26:13 +0200 |
---|---|---|
committer | Jorge Boncompte <jbonor@gmail.com> | 2017-08-04 10:19:36 +0200 |
commit | 43e31305875b5c3ea2f9f27f99ee6f42c1186c80 (patch) | |
tree | 099cc6b53c539980a3b62ead565dd9350d25757f /zebra/zebra_rib.c | |
parent | zebra: track and compare distance of recursive nexthops (diff) | |
download | frr-43e31305875b5c3ea2f9f27f99ee6f42c1186c80.tar.xz frr-43e31305875b5c3ea2f9f27f99ee6f42c1186c80.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_rib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 98508aaa8..f5ee2dff9 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; |