summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorJorge Boncompte <jbonor@gmail.com>2017-07-25 12:26:13 +0200
committerJorge Boncompte <jbonor@gmail.com>2017-08-04 10:19:36 +0200
commit43e31305875b5c3ea2f9f27f99ee6f42c1186c80 (patch)
tree099cc6b53c539980a3b62ead565dd9350d25757f /zebra/zebra_rib.c
parent7733c6c4190603a2ec156c917ae07b1b89554569 (diff)
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 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 2 insertions, 0 deletions
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;