projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6501f34
)
tcp: make nla_policy const
author
stephen hemminger
<stephen@networkplumber.org>
Wed, 31 Aug 2016 22:21:37 +0000
(15:21 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Sep 2016 21:09:01 +0000
(14:09 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_metrics.c
b/net/ipv4/tcp_metrics.c
index b617826e24770a09ba07202b3d546ae248b68a50..bf1f3b2b29d1226b572fdc6286c697c2f75b805b 100644
(file)
--- a/
net/ipv4/tcp_metrics.c
+++ b/
net/ipv4/tcp_metrics.c
@@
-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), },