Skip to contentSkip to conversation

fou: Fix IPv6 netlink policy

PATCH In review Kristian Evensen 3 participants 3 messages Jan 23, 2020 – Jan 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fou: Fix IPv6 netlink policy

When submitting v2 of "fou: Support binding FoU socket" (1713cb37bf67), I accidentally sent the wrong version of the patch and one fix was missing. In the initial version of the patch, as well as the version 2 that I submitted, I incorrectly used ".type" for the two V6-attributes. The correct is to use ".len".

Fixes 1713cb37bf67 ("fou: Support binding FoU socket")
---
 net/ipv4/fou.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv4/fou.c +2 -2
index 30fa771d382a..dcc79ff54b41 100644
@@ -662,8 +662,8 @@ static const struct nla_policy fou_nl_policy[FOU_ATTR_MAX + 1] = {
 	[FOU_ATTR_REMCSUM_NOPARTIAL]	= { .type = NLA_FLAG, },
 	[FOU_ATTR_LOCAL_V4]		= { .type = NLA_U32, },
 	[FOU_ATTR_PEER_V4]		= { .type = NLA_U32, },
-	[FOU_ATTR_LOCAL_V6]		= { .type = sizeof(struct in6_addr), },
-	[FOU_ATTR_PEER_V6]		= { .type = sizeof(struct in6_addr), },
+	[FOU_ATTR_LOCAL_V6]		= { .len = sizeof(struct in6_addr), },
+	[FOU_ATTR_PEER_V6]		= { .len = sizeof(struct in6_addr), },
 	[FOU_ATTR_PEER_PORT]		= { .type = NLA_U16, },
 	[FOU_ATTR_IFINDEX]		= { .type = NLA_S32, },
 };
Signature · 1 line
2.20.1
maintainer
#1 lore raw

From: Kristian Evensen <[email protected]>
Date: Thu, 23 Jan 2020 13:20:18 +0100

Quoted 9 lines

When submitting v2 of "fou: Support binding FoU socket" (1713cb37bf67), I accidentally sent the wrong version of the patch and one fix was missing. In the initial version of the patch, as well as the version 2 that I submitted, I incorrectly used ".type" for the two V6-attributes. The correct is to use ".len".

Fixes 1713cb37bf67 ("fou: Support binding FoU socket")

Applied and queued up for -stable, thanks.

#2 lore raw
In reply to Kristian Evensen

Hello!

Quoted 1 line · Kristian Evensen

When submitting v2 of "fou: Support binding FoU socket" (1713cb37bf67),

1713cb37bf67 ("fou: Support binding FoU socket"), like in the Fixes: tag.

Quoted 8 lines

I accidentally sent the wrong version of the patch and one fix was missing. In the initial version of the patch, as well as the version 2 that I submitted, I incorrectly used ".type" for the two V6-attributes. The correct is to use ".len".

Fixes 1713cb37bf67 ("fou: Support binding FoU socket")

[...]

MBR, Sergei