aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/reassembly.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index 798cabc7535b..7e008de87117 100644
--- a/net/ipv6/reassembly.c
+++ b/net/ipv6/reassembly.c
@@ -632,7 +632,7 @@ static struct inet6_protocol frag_protocol =
632}; 632};
633 633
634#ifdef CONFIG_SYSCTL 634#ifdef CONFIG_SYSCTL
635static struct ctl_table ip6_frags_ctl_table[] = { 635static struct ctl_table ip6_frags_ns_ctl_table[] = {
636 { 636 {
637 .ctl_name = NET_IPV6_IP6FRAG_HIGH_THRESH, 637 .ctl_name = NET_IPV6_IP6FRAG_HIGH_THRESH,
638 .procname = "ip6frag_high_thresh", 638 .procname = "ip6frag_high_thresh",
@@ -670,14 +670,14 @@ static struct ctl_table ip6_frags_ctl_table[] = {
670 { } 670 { }
671}; 671};
672 672
673static int ip6_frags_sysctl_register(struct net *net) 673static int ip6_frags_ns_sysctl_register(struct net *net)
674{ 674{
675 struct ctl_table *table; 675 struct ctl_table *table;
676 struct ctl_table_header *hdr; 676 struct ctl_table_header *hdr;
677 677
678 table = ip6_frags_ctl_table; 678 table = ip6_frags_ns_ctl_table;
679 if (net != &init_net) { 679 if (net != &init_net) {
680 table = kmemdup(table, sizeof(ip6_frags_ctl_table), GFP_KERNEL); 680 table = kmemdup(table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL);
681 if (table == NULL) 681 if (table == NULL)
682 goto err_alloc; 682 goto err_alloc;
683 683
@@ -701,7 +701,7 @@ err_alloc:
701 return -ENOMEM; 701 return -ENOMEM;
702} 702}
703 703
704static void ip6_frags_sysctl_unregister(struct net *net) 704static void ip6_frags_ns_sysctl_unregister(struct net *net)
705{ 705{
706 struct ctl_table *table; 706 struct ctl_table *table;
707 707
@@ -710,12 +710,12 @@ static void ip6_frags_sysctl_unregister(struct net *net)
710 kfree(table); 710 kfree(table);
711} 711}
712#else 712#else
713static inline int ip6_frags_sysctl_register(struct net *net) 713static inline int ip6_frags_ns_sysctl_register(struct net *net)
714{ 714{
715 return 0; 715 return 0;
716} 716}
717 717
718static inline void ip6_frags_sysctl_unregister(struct net *net) 718static inline void ip6_frags_ns_sysctl_unregister(struct net *net)
719{ 719{
720} 720}
721#endif 721#endif
@@ -728,12 +728,12 @@ static int ipv6_frags_init_net(struct net *net)
728 728
729 inet_frags_init_net(&net->ipv6.frags); 729 inet_frags_init_net(&net->ipv6.frags);
730 730
731 return ip6_frags_sysctl_register(net); 731 return ip6_frags_ns_sysctl_register(net);
732} 732}
733 733
734static void ipv6_frags_exit_net(struct net *net) 734static void ipv6_frags_exit_net(struct net *net)
735{ 735{
736 ip6_frags_sysctl_unregister(net); 736 ip6_frags_ns_sysctl_unregister(net);
737 inet_frags_exit_net(&net->ipv6.frags, &ip6_frags); 737 inet_frags_exit_net(&net->ipv6.frags, &ip6_frags);
738} 738}
739 739