diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_fragment.c | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_queue.c | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 10 | ||||
-rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 5 | ||||
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 4 |
5 files changed, 7 insertions, 16 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 6a2f85cd440e..71e5c328176c 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -782,7 +782,7 @@ static int __net_init ip4_frags_ns_ctl_register(struct net *net) | |||
782 | table[2].data = &net->ipv4.frags.timeout; | 782 | table[2].data = &net->ipv4.frags.timeout; |
783 | } | 783 | } |
784 | 784 | ||
785 | hdr = register_net_sysctl_table(net, net_ipv4_ctl_path, table); | 785 | hdr = register_net_sysctl(net, "net/ipv4", table); |
786 | if (hdr == NULL) | 786 | if (hdr == NULL) |
787 | goto err_reg; | 787 | goto err_reg; |
788 | 788 | ||
diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c index 766485d7d099..09775a1e1348 100644 --- a/net/ipv4/netfilter/ip_queue.c +++ b/net/ipv4/netfilter/ip_queue.c | |||
@@ -586,7 +586,7 @@ static int __init ip_queue_init(void) | |||
586 | #endif | 586 | #endif |
587 | register_netdevice_notifier(&ipq_dev_notifier); | 587 | register_netdevice_notifier(&ipq_dev_notifier); |
588 | #ifdef CONFIG_SYSCTL | 588 | #ifdef CONFIG_SYSCTL |
589 | ipq_sysctl_header = register_net_sysctl_table(&init_net, net_ipv4_ctl_path, ipq_table); | 589 | ipq_sysctl_header = register_net_sysctl(&init_net, "net/ipv4", ipq_table); |
590 | #endif | 590 | #endif |
591 | status = nf_register_queue_handler(NFPROTO_IPV4, &nfqh); | 591 | status = nf_register_queue_handler(NFPROTO_IPV4, &nfqh); |
592 | if (status < 0) { | 592 | if (status < 0) { |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index adf2105a6e85..5773f5d9e213 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3354,13 +3354,6 @@ static struct ctl_table ipv4_route_flush_table[] = { | |||
3354 | { }, | 3354 | { }, |
3355 | }; | 3355 | }; |
3356 | 3356 | ||
3357 | static __net_initdata struct ctl_path ipv4_route_path[] = { | ||
3358 | { .procname = "net", }, | ||
3359 | { .procname = "ipv4", }, | ||
3360 | { .procname = "route", }, | ||
3361 | { }, | ||
3362 | }; | ||
3363 | |||
3364 | static __net_init int sysctl_route_net_init(struct net *net) | 3357 | static __net_init int sysctl_route_net_init(struct net *net) |
3365 | { | 3358 | { |
3366 | struct ctl_table *tbl; | 3359 | struct ctl_table *tbl; |
@@ -3373,8 +3366,7 @@ static __net_init int sysctl_route_net_init(struct net *net) | |||
3373 | } | 3366 | } |
3374 | tbl[0].extra1 = net; | 3367 | tbl[0].extra1 = net; |
3375 | 3368 | ||
3376 | net->ipv4.route_hdr = | 3369 | net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl); |
3377 | register_net_sysctl_table(net, ipv4_route_path, tbl); | ||
3378 | if (net->ipv4.route_hdr == NULL) | 3370 | if (net->ipv4.route_hdr == NULL) |
3379 | goto err_reg; | 3371 | goto err_reg; |
3380 | return 0; | 3372 | return 0; |
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index e7a6fa3d70bb..56e64f7b75d0 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c | |||
@@ -815,8 +815,7 @@ static __net_init int ipv4_sysctl_init_net(struct net *net) | |||
815 | 815 | ||
816 | tcp_init_mem(net); | 816 | tcp_init_mem(net); |
817 | 817 | ||
818 | net->ipv4.ipv4_hdr = register_net_sysctl_table(net, | 818 | net->ipv4.ipv4_hdr = register_net_sysctl(net, "net/ipv4", table); |
819 | net_ipv4_ctl_path, table); | ||
820 | if (net->ipv4.ipv4_hdr == NULL) | 819 | if (net->ipv4.ipv4_hdr == NULL) |
821 | goto err_reg; | 820 | goto err_reg; |
822 | 821 | ||
@@ -857,7 +856,7 @@ static __init int sysctl_ipv4_init(void) | |||
857 | if (!i->procname) | 856 | if (!i->procname) |
858 | return -EINVAL; | 857 | return -EINVAL; |
859 | 858 | ||
860 | hdr = register_net_sysctl_table(&init_net, net_ipv4_ctl_path, ipv4_table); | 859 | hdr = register_net_sysctl(&init_net, "net/ipv4", ipv4_table); |
861 | if (hdr == NULL) | 860 | if (hdr == NULL) |
862 | return -ENOMEM; | 861 | return -ENOMEM; |
863 | 862 | ||
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index 8ef24e16afce..0d3426cb5c4f 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -298,8 +298,8 @@ void __init xfrm4_init(int rt_max_size) | |||
298 | xfrm4_state_init(); | 298 | xfrm4_state_init(); |
299 | xfrm4_policy_init(); | 299 | xfrm4_policy_init(); |
300 | #ifdef CONFIG_SYSCTL | 300 | #ifdef CONFIG_SYSCTL |
301 | sysctl_hdr = register_net_sysctl_table(&init_net, net_ipv4_ctl_path, | 301 | sysctl_hdr = register_net_sysctl(&init_net, "net/ipv4", |
302 | xfrm4_policy_table); | 302 | xfrm4_policy_table); |
303 | #endif | 303 | #endif |
304 | } | 304 | } |
305 | 305 | ||