Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c5eb6a5 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller
Browse files

[IPV6] ROUTE: Fix FWMARK support.



- Add missing nla_policy entry.
- type of fwmark is u32, not u8.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acba48e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ struct fib6_rule
	struct rt6key		src;
	struct rt6key		dst;
#ifdef CONFIG_IPV6_ROUTE_FWMARK
	u8			fwmark;
	u32			fwmark;
#endif
	u8			tclass;
};
@@ -140,6 +140,7 @@ static struct nla_policy fib6_rule_policy[RTA_MAX+1] __read_mostly = {
	[FRA_PRIORITY]	= { .type = NLA_U32 },
	[FRA_SRC]	= { .minlen = sizeof(struct in6_addr) },
	[FRA_DST]	= { .minlen = sizeof(struct in6_addr) },
	[FRA_FWMARK]	= { .type = NLA_U32 },
	[FRA_TABLE]	= { .type = NLA_U32 },
};