summaryrefslogtreecommitdiff
path: root/include/net/netns
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-08-29 14:46:40 +0000
committerJakub Kicinski <kuba@kernel.org>2024-08-30 11:14:06 -0700
commitb056b4cd9178f7a1d5d57f7b48b073c29729ddaa (patch)
treec52e88f67befd08e2f9c751d342c850029ebfd73 /include/net/netns
parent8c2bd38b95f75f3d2a08c93e35303e26d480d24e (diff)
downloadlinux-b056b4cd9178f7a1d5d57f7b48b073c29729ddaa.tar.gz
linux-b056b4cd9178f7a1d5d57f7b48b073c29729ddaa.tar.bz2
linux-b056b4cd9178f7a1d5d57f7b48b073c29729ddaa.zip
icmp: move icmp_global.credit and icmp_global.stamp to per netns storage
Host wide ICMP ratelimiter should be per netns, to provide better isolation. Following patch in this series makes the sysctl per netns. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/20240829144641.3880376-3-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/ipv4.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
index 5fcd61ada622..54fe7c079fff 100644
--- a/include/net/netns/ipv4.h
+++ b/include/net/netns/ipv4.h
@@ -122,7 +122,8 @@ struct netns_ipv4 {
u8 sysctl_icmp_errors_use_inbound_ifaddr;
int sysctl_icmp_ratelimit;
int sysctl_icmp_ratemask;
-
+ atomic_t icmp_global_credit;
+ u32 icmp_global_stamp;
u32 ip_rt_min_pmtu;
int ip_rt_mtu_expires;
int ip_rt_min_advmss;