aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/sysctl_net_ipv4.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-03-26 04:55:37 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-26 04:55:37 -0400
commita24022e1887978decaa28fb11d1ddff63e31497f (patch)
tree93164b35de5cafda8af0838ab7c00b63c6b26fd2 /net/ipv4/sysctl_net_ipv4.c
parent1577519d6b3777d2d3ba05871dd7ee40112c58ce (diff)
[NETNS][ICMP]: Move ICMP sysctls on struct net.
Initialization is moved to icmp_sk_init, all the places, that refer to them use init_net for now. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
-rw-r--r--net/ipv4/sysctl_net_ipv4.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index c2fca3024d2e..e9585c02f243 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -406,7 +406,7 @@ static struct ctl_table ipv4_table[] = {
406 { 406 {
407 .ctl_name = NET_IPV4_ICMP_ECHO_IGNORE_ALL, 407 .ctl_name = NET_IPV4_ICMP_ECHO_IGNORE_ALL,
408 .procname = "icmp_echo_ignore_all", 408 .procname = "icmp_echo_ignore_all",
409 .data = &sysctl_icmp_echo_ignore_all, 409 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_all,
410 .maxlen = sizeof(int), 410 .maxlen = sizeof(int),
411 .mode = 0644, 411 .mode = 0644,
412 .proc_handler = &proc_dointvec 412 .proc_handler = &proc_dointvec
@@ -414,7 +414,7 @@ static struct ctl_table ipv4_table[] = {
414 { 414 {
415 .ctl_name = NET_IPV4_ICMP_ECHO_IGNORE_BROADCASTS, 415 .ctl_name = NET_IPV4_ICMP_ECHO_IGNORE_BROADCASTS,
416 .procname = "icmp_echo_ignore_broadcasts", 416 .procname = "icmp_echo_ignore_broadcasts",
417 .data = &sysctl_icmp_echo_ignore_broadcasts, 417 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_broadcasts,
418 .maxlen = sizeof(int), 418 .maxlen = sizeof(int),
419 .mode = 0644, 419 .mode = 0644,
420 .proc_handler = &proc_dointvec 420 .proc_handler = &proc_dointvec
@@ -422,7 +422,7 @@ static struct ctl_table ipv4_table[] = {
422 { 422 {
423 .ctl_name = NET_IPV4_ICMP_IGNORE_BOGUS_ERROR_RESPONSES, 423 .ctl_name = NET_IPV4_ICMP_IGNORE_BOGUS_ERROR_RESPONSES,
424 .procname = "icmp_ignore_bogus_error_responses", 424 .procname = "icmp_ignore_bogus_error_responses",
425 .data = &sysctl_icmp_ignore_bogus_error_responses, 425 .data = &init_net.ipv4.sysctl_icmp_ignore_bogus_error_responses,
426 .maxlen = sizeof(int), 426 .maxlen = sizeof(int),
427 .mode = 0644, 427 .mode = 0644,
428 .proc_handler = &proc_dointvec 428 .proc_handler = &proc_dointvec
@@ -430,7 +430,7 @@ static struct ctl_table ipv4_table[] = {
430 { 430 {
431 .ctl_name = NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR, 431 .ctl_name = NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR,
432 .procname = "icmp_errors_use_inbound_ifaddr", 432 .procname = "icmp_errors_use_inbound_ifaddr",
433 .data = &sysctl_icmp_errors_use_inbound_ifaddr, 433 .data = &init_net.ipv4.sysctl_icmp_errors_use_inbound_ifaddr,
434 .maxlen = sizeof(int), 434 .maxlen = sizeof(int),
435 .mode = 0644, 435 .mode = 0644,
436 .proc_handler = &proc_dointvec 436 .proc_handler = &proc_dointvec
@@ -588,7 +588,7 @@ static struct ctl_table ipv4_table[] = {
588 { 588 {
589 .ctl_name = NET_IPV4_ICMP_RATELIMIT, 589 .ctl_name = NET_IPV4_ICMP_RATELIMIT,
590 .procname = "icmp_ratelimit", 590 .procname = "icmp_ratelimit",
591 .data = &sysctl_icmp_ratelimit, 591 .data = &init_net.ipv4.sysctl_icmp_ratelimit,
592 .maxlen = sizeof(int), 592 .maxlen = sizeof(int),
593 .mode = 0644, 593 .mode = 0644,
594 .proc_handler = &proc_dointvec 594 .proc_handler = &proc_dointvec
@@ -596,7 +596,7 @@ static struct ctl_table ipv4_table[] = {
596 { 596 {
597 .ctl_name = NET_IPV4_ICMP_RATEMASK, 597 .ctl_name = NET_IPV4_ICMP_RATEMASK,
598 .procname = "icmp_ratemask", 598 .procname = "icmp_ratemask",
599 .data = &sysctl_icmp_ratemask, 599 .data = &init_net.ipv4.sysctl_icmp_ratemask,
600 .maxlen = sizeof(int), 600 .maxlen = sizeof(int),
601 .mode = 0644, 601 .mode = 0644,
602 .proc_handler = &proc_dointvec 602 .proc_handler = &proc_dointvec