Skip to content

Commit

Permalink
Merge pull request #14755 from FRRouting/mergify/bp/stable/9.0/pr-14675
Browse files Browse the repository at this point in the history
zebra: Add encap type when building packet for FPM (backport #14675)
  • Loading branch information
donaldsharp authored Nov 8, 2023
2 parents 82045db + 60cff30 commit 8b7f892
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions zebra/rt_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -2328,19 +2328,21 @@ ssize_t netlink_route_multipath_msg_encode(int cmd,
p, routedesc, bytelen, nexthop,
&req->n, &req->r, datalen, cmd))
return 0;

/*
* Add encapsulation information when
* installing via FPM.
*/
if (fpm) {
if (!netlink_route_nexthop_encap(&req->n,
datalen,
nexthop))
return 0;
}

nexthop_num++;
break;
}

/*
* Add encapsulation information when installing via
* FPM.
*/
if (fpm) {
if (!netlink_route_nexthop_encap(
&req->n, datalen, nexthop))
return 0;
}
}

if (setsrc) {
Expand Down

0 comments on commit 8b7f892

Please sign in to comment.