mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 10:57:01 +00:00
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:
parent
7733c6c419
commit
43e3130587
@ -505,6 +505,8 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
}
|
}
|
||||||
resolved = 1;
|
resolved = 1;
|
||||||
}
|
}
|
||||||
|
if (resolved && set)
|
||||||
|
re->nexthop_mtu = match->mtu;
|
||||||
return resolved;
|
return resolved;
|
||||||
} else if (re->type == ZEBRA_ROUTE_STATIC) {
|
} else if (re->type == ZEBRA_ROUTE_STATIC) {
|
||||||
resolved = 0;
|
resolved = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user