mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-05 08:31:53 +00:00
Static: Fixed undefined nexthop padding problems
This commit is contained in:
parent
03731bf356
commit
492c416c0a
@ -80,12 +80,10 @@ static_announce_rte(struct static_proto *p, struct static_route *r)
|
|||||||
if (!r2->active)
|
if (!r2->active)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*nh = (struct nexthop) {
|
nh->gw = r2->via;
|
||||||
.gw = r2->via,
|
nh->iface = r2->neigh->iface;
|
||||||
.iface = r2->neigh->iface,
|
nh->flags = r2->onlink ? RNF_ONLINK : 0;
|
||||||
.flags = r2->onlink ? RNF_ONLINK : 0,
|
nh->weight = r2->weight;
|
||||||
.weight = r2->weight,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (r2->mls)
|
if (r2->mls)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user