]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: copy MTU from non static routes into nexthop
authorJorge Boncompte <jbonor@gmail.com>
Tue, 25 Jul 2017 10:26:13 +0000 (12:26 +0200)
committerJorge Boncompte <jbonor@gmail.com>
Fri, 4 Aug 2017 08:19:36 +0000 (10:19 +0200)
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>
zebra/zebra_rib.c

index 98508aaa89efbf6413cadf39df1efc0671a7f9b0..f5ee2dff9022203f809c4d4ada06b7d264af5bef 100644 (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;