MPTCP Linux Development
 help / color / mirror / Atom feed
* [PATCH mptcp-next] Squash to: "net: mptcp: use policy generated by YAML spec"
@ 2023-10-13  9:45 Davide Caratti
  2023-10-13 11:13 ` Squash to: "net: mptcp: use policy generated by YAML spec": Tests Results MPTCP CI
  2023-10-13 15:06 ` [PATCH mptcp-next] Squash to: "net: mptcp: use policy generated by YAML spec" Matthieu Baerts
  0 siblings, 2 replies; 7+ messages in thread
From: Davide Caratti @ 2023-10-13  9:45 UTC (permalink / raw)
  To: mptcp

as per Jakub's review, a newer YAML spec is going to validate addr6
with NLA_POLICY_EXACT_LEN(16)

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
---
 net/mptcp/mptcp_pm_gen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/mptcp_pm_gen.c b/net/mptcp/mptcp_pm_gen.c
index 673b5167af6b..a2325e70ddab 100644
--- a/net/mptcp/mptcp_pm_gen.c
+++ b/net/mptcp/mptcp_pm_gen.c
@@ -15,7 +15,7 @@ const struct nla_policy mptcp_pm_address_nl_policy[MPTCP_PM_ADDR_ATTR_IF_IDX + 1
 	[MPTCP_PM_ADDR_ATTR_FAMILY] = { .type = NLA_U16, },
 	[MPTCP_PM_ADDR_ATTR_ID] = { .type = NLA_U8, },
 	[MPTCP_PM_ADDR_ATTR_ADDR4] = { .type = NLA_U32, },
-	[MPTCP_PM_ADDR_ATTR_ADDR6] = { .len = 16, },
+	[MPTCP_PM_ADDR_ATTR_ADDR6] = NLA_POLICY_EXACT_LEN(16),
 	[MPTCP_PM_ADDR_ATTR_PORT] = { .type = NLA_U16, },
 	[MPTCP_PM_ADDR_ATTR_FLAGS] = { .type = NLA_U32, },
 	[MPTCP_PM_ADDR_ATTR_IF_IDX] = { .type = NLA_S32, },
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-16 12:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13  9:45 [PATCH mptcp-next] Squash to: "net: mptcp: use policy generated by YAML spec" Davide Caratti
2023-10-13 11:13 ` Squash to: "net: mptcp: use policy generated by YAML spec": Tests Results MPTCP CI
2023-10-13 15:06 ` [PATCH mptcp-next] Squash to: "net: mptcp: use policy generated by YAML spec" Matthieu Baerts
2023-10-13 15:53   ` Davide Caratti
2023-10-16 11:34     ` Matthieu Baerts
2023-10-16 12:25       ` Davide Caratti
2023-10-16 12:47         ` Matthieu Baerts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox