icmp.c (163849ea9b4c5d50fbd324692461983d18faadad) | icmp.c (2c8c1e7297e19bdef3c178c3ea41d898a7716e3e) |
---|---|
1/* 2 * Internet Control Message Protocol (ICMPv6) 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on net/ipv4/icmp.c --- 937 unchanged lines hidden (view full) --- 946 .data = &init_net.ipv6.sysctl.icmpv6_time, 947 .maxlen = sizeof(int), 948 .mode = 0644, 949 .proc_handler = proc_dointvec_ms_jiffies, 950 }, 951 { }, 952}; 953 | 1/* 2 * Internet Control Message Protocol (ICMPv6) 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * Based on net/ipv4/icmp.c --- 937 unchanged lines hidden (view full) --- 946 .data = &init_net.ipv6.sysctl.icmpv6_time, 947 .maxlen = sizeof(int), 948 .mode = 0644, 949 .proc_handler = proc_dointvec_ms_jiffies, 950 }, 951 { }, 952}; 953 |
954struct ctl_table *ipv6_icmp_sysctl_init(struct net *net) | 954struct ctl_table * __net_init ipv6_icmp_sysctl_init(struct net *net) |
955{ 956 struct ctl_table *table; 957 958 table = kmemdup(ipv6_icmp_table_template, 959 sizeof(ipv6_icmp_table_template), 960 GFP_KERNEL); 961 962 if (table) 963 table[0].data = &net->ipv6.sysctl.icmpv6_time; 964 965 return table; 966} 967#endif 968 | 955{ 956 struct ctl_table *table; 957 958 table = kmemdup(ipv6_icmp_table_template, 959 sizeof(ipv6_icmp_table_template), 960 GFP_KERNEL); 961 962 if (table) 963 table[0].data = &net->ipv6.sysctl.icmpv6_time; 964 965 return table; 966} 967#endif 968 |