Skip to content

Commit

Permalink
TESTt
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldsharp committed Nov 17, 2023
1 parent 31b4c7a commit d7b234b
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions zebra/rt_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,16 @@ ssize_t netlink_route_multipath_msg_encode(int cmd,
tag))
return 0;

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

if (!setsrc && src1) {
if (p->family == AF_INET)
src.ipv4 = src1->ipv4;
Expand All @@ -2309,23 +2319,6 @@ ssize_t netlink_route_multipath_msg_encode(int cmd,

nl_attr_nest_end(&req->n, nest);

/*
* Add encapsulation information when installing via
* FPM.
*/
if (fpm) {
for (ALL_NEXTHOPS_PTR(dplane_ctx_get_ng(ctx),
nexthop)) {
if (CHECK_FLAG(nexthop->flags,
NEXTHOP_FLAG_RECURSIVE))
continue;
if (!netlink_route_nexthop_encap(
&req->n, datalen, nexthop))
return 0;
}
}


if (setsrc) {
if (p->family == AF_INET) {
if (!nl_attr_put(&req->n, datalen, RTA_PREFSRC,
Expand Down

0 comments on commit d7b234b

Please sign in to comment.