Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zebra: Add encap type when building packet for FPM (backport #14675) #14755

Merged
merged 1 commit into from
Nov 8, 2023

zebra: Add encap type when building packet for FPM

60cff30
Select commit
Loading
Failed to load commit list.
Merged

zebra: Add encap type when building packet for FPM (backport #14675) #14755

zebra: Add encap type when building packet for FPM
60cff30
Select commit
Loading
Failed to load commit list.
frrbot / frrbot completed Nov 8, 2023 in 7s

Style and/or linter errors found

Style and/or linter errors found

Details

Thanks for your contribution to FRR!

Click for style suggestions

diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index a54068769..875bdc571 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -2334,9 +2334,8 @@ ssize_t netlink_route_multipath_msg_encode(int cmd,
 				 * installing via FPM.
 				 */
 				if (fpm) {
-					if (!netlink_route_nexthop_encap(&req->n,
-									 datalen,
-									 nexthop))
+					if (!netlink_route_nexthop_encap(
+						    &req->n, datalen, nexthop))
 						return 0;
 				}
 

To apply the style suggestions:

curl https://gist.githubusercontent.com/polychaeta/98032a4b5d6834224d146dca6d6a5217/raw/c877707f2e768c1d4a87118cde2a6c2579903220/style.diff | git apply -

If you are a new contributor to FRR, please see our contributing guidelines.

After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.