patch-2.1.127 linux/net/core/sysctl_net_core.c

Next file: linux/net/ipv4/af_inet.c
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.126/linux/net/core/sysctl_net_core.c linux/net/core/sysctl_net_core.c
@@ -25,6 +25,7 @@
 extern int sysctl_optmem_max;
 
 ctl_table core_table[] = {
+#ifdef CONFIG_NET
 	{NET_CORE_WMEM_MAX, "wmem_max",
 	 &sysctl_wmem_max, sizeof(int), 0644, NULL,
 	 &proc_dointvec},
@@ -54,6 +55,7 @@
 	{NET_CORE_OPTMEM_MAX, "optmem_max",
 	 &sysctl_optmem_max, sizeof(int), 0644, NULL,
 	 &proc_dointvec},
+#endif /* CONFIG_NET */
 	{ 0 }
 };
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov