Backport https://gerrit.fd.io/r/c/vpp/+/38633
This commit is contained in:
@ -234,10 +234,11 @@ lcp_nl_route_path_parse (struct rtnl_nexthop *rnh, void *arg)
|
||||
path->frp_preference = ctx->preference;
|
||||
|
||||
addr = rtnl_route_nh_get_gateway (rnh);
|
||||
if (!addr)
|
||||
addr = rtnl_route_nh_get_via (rnh);
|
||||
|
||||
if (addr)
|
||||
fproto =
|
||||
lcp_nl_mk_addr46 (rtnl_route_nh_get_gateway (rnh), &path->frp_addr);
|
||||
fproto = lcp_nl_mk_addr46 (addr, &path->frp_addr);
|
||||
else
|
||||
fproto = ctx->route_proto;
|
||||
|
||||
|
Reference in New Issue
Block a user