mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
tcp: make nla_policy const
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6501f34ff7
commit
4f70c96ffd
@ -751,7 +751,7 @@ static struct genl_family tcp_metrics_nl_family = {
|
||||
.netnsok = true,
|
||||
};
|
||||
|
||||
static struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {
|
||||
static const struct nla_policy tcp_metrics_nl_policy[TCP_METRICS_ATTR_MAX + 1] = {
|
||||
[TCP_METRICS_ATTR_ADDR_IPV4] = { .type = NLA_U32, },
|
||||
[TCP_METRICS_ATTR_ADDR_IPV6] = { .type = NLA_BINARY,
|
||||
.len = sizeof(struct in6_addr), },
|
||||
|
Loading…
Reference in New Issue
Block a user