[BACK]Return to sysctl_net_core.c CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / net / core

File: [Development] / linux-2.4-xfs / net / core / sysctl_net_core.c (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

/* -*- linux-c -*-
 * sysctl_net_core.c: sysctl interface to net core subsystem.
 *
 * Begun April 1, 1996, Mike Shaver.
 * Added /proc/sys/net/core directory entry (empty =) ). [MS]
 */

#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/config.h>

#ifdef CONFIG_SYSCTL

extern int netdev_max_backlog;
extern int weight_p;
extern int no_cong_thresh;
extern int no_cong;
extern int lo_cong;
extern int mod_cong;
extern int netdev_fastroute;
extern int net_msg_cost;
extern int net_msg_burst;

extern __u32 sysctl_wmem_max;
extern __u32 sysctl_rmem_max;
extern __u32 sysctl_wmem_default;
extern __u32 sysctl_rmem_default;

extern int sysctl_core_destroy_delay;
extern int sysctl_optmem_max;
extern int sysctl_somaxconn;
extern int sysctl_hot_list_len;

#ifdef CONFIG_NET_DIVERT
extern char sysctl_divert_version[];
#endif /* CONFIG_NET_DIVERT */

ctl_table core_table[] = {
#ifdef CONFIG_NET
	{NET_CORE_WMEM_MAX, "wmem_max",
	 &sysctl_wmem_max, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_RMEM_MAX, "rmem_max",
	 &sysctl_rmem_max, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_WMEM_DEFAULT, "wmem_default",
	 &sysctl_wmem_default, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_RMEM_DEFAULT, "rmem_default",
	 &sysctl_rmem_default, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_DEV_WEIGHT, "dev_weight",
	 &weight_p, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_MAX_BACKLOG, "netdev_max_backlog",
	 &netdev_max_backlog, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_NO_CONG_THRESH, "no_cong_thresh",
	 &no_cong_thresh, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_NO_CONG, "no_cong",
	 &no_cong, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_LO_CONG, "lo_cong",
	 &lo_cong, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_MOD_CONG, "mod_cong",
	 &mod_cong, sizeof(int), 0644, NULL,
	 &proc_dointvec},
#ifdef CONFIG_NET_FASTROUTE
	{NET_CORE_FASTROUTE, "netdev_fastroute",
	 &netdev_fastroute, sizeof(int), 0644, NULL,
	 &proc_dointvec},
#endif
	{NET_CORE_MSG_COST, "message_cost",
	 &net_msg_cost, sizeof(int), 0644, NULL,
	 &proc_dointvec_jiffies},
	{NET_CORE_MSG_BURST, "message_burst",
	 &net_msg_burst, sizeof(int), 0644, NULL,
	 &proc_dointvec_jiffies},
	{NET_CORE_OPTMEM_MAX, "optmem_max",
	 &sysctl_optmem_max, sizeof(int), 0644, NULL,
	 &proc_dointvec},
	{NET_CORE_HOT_LIST_LENGTH, "hot_list_length",
	 &sysctl_hot_list_len, sizeof(int), 0644, NULL,
	 &proc_dointvec},
#ifdef CONFIG_NET_DIVERT
	{NET_CORE_DIVERT_VERSION, "divert_version",
	 (void *)sysctl_divert_version, 32, 0444, NULL,
	 &proc_dostring},
#endif /* CONFIG_NET_DIVERT */
	{NET_CORE_SOMAXCONN, "somaxconn",
	 &sysctl_somaxconn, sizeof(int), 0644, NULL,
	 &proc_dointvec },
#endif /* CONFIG_NET */
	{ 0 }
};
#endif