~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/net/ipv6/sysctl_net_ipv6.c

Version: ~ [ linux-6.3-rc3 ] ~ [ linux-6.2.7 ] ~ [ linux-6.1.20 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.103 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.175 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.237 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.278 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.310 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
  3  *
  4  * Changes:
  5  * YOSHIFUJI Hideaki @USAGI:    added icmp sysctl table.
  6  */
  7 
  8 #include <linux/mm.h>
  9 #include <linux/sysctl.h>
 10 #include <linux/config.h>
 11 #include <linux/in6.h>
 12 #include <linux/ipv6.h>
 13 #include <net/ndisc.h>
 14 #include <net/ipv6.h>
 15 #include <net/addrconf.h>
 16 
 17 extern ctl_table ipv6_route_table[];
 18 extern ctl_table ipv6_icmp_table[];
 19 
 20 #ifdef CONFIG_SYSCTL
 21 
 22 ctl_table ipv6_table[] = {
 23         {NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
 24         {NET_IPV6_ICMP, "icmp", NULL, 0, 0500, ipv6_icmp_table},
 25         {NET_IPV6_BINDV6ONLY, "bindv6only",
 26          &sysctl_ipv6_bindv6only, sizeof(int), 0644, NULL, &proc_dointvec},
 27         {NET_IPV6_MLD_MAX_MSF, "mld_max_msf",
 28          &sysctl_mld_max_msf, sizeof(int), 0644, NULL, &proc_dointvec},
 29         {0}
 30 };
 31 
 32 #ifdef MODULE
 33 static struct ctl_table_header *ipv6_sysctl_header;
 34 
 35 static ctl_table ipv6_net_table[] = {
 36         {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
 37         {0}
 38 };
 39 
 40 static ctl_table ipv6_root_table[] = {
 41         {CTL_NET, "net", NULL, 0, 0555, ipv6_net_table},
 42         {0}
 43 };
 44 
 45 void ipv6_sysctl_register(void)
 46 {
 47         ipv6_sysctl_header = register_sysctl_table(ipv6_root_table, 0);
 48 }
 49 
 50 void ipv6_sysctl_unregister(void)
 51 {
 52         unregister_sysctl_table(ipv6_sysctl_header);
 53 }
 54 #endif  /* MODULE */
 55 
 56 #endif /* CONFIG_SYSCTL */
 57 
 58 
 59 
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp