diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-09 07:41:08 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 09:24:05 +0400 |
commit | a2a316fd068c455c609ecc155dcfaa7e208d29fe (patch) | |
tree | 9839e2c7e05e9d25241fa7c7b27fd06214120292 /net/core/sysctl_net_core.c | |
parent | ae40eb1ef30ab4120bd3c8b7e3da99ee53d27a23 (diff) | |
download | linux-a2a316fd068c455c609ecc155dcfaa7e208d29fe.tar.xz |
[NET]: Replace CONFIG_NET_DEBUG with sysctl.
Covert network warning messages from a compile time to runtime choice.
Removes kernel config option and replaces it with new /proc/sys/net/core/warnings.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sysctl_net_core.c')
-rw-r--r-- | net/core/sysctl_net_core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 1e75b1585460..b29712033dd4 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -136,6 +136,14 @@ ctl_table core_table[] = { .mode = 0644, .proc_handler = &proc_dointvec }, + { + .ctl_name = NET_CORE_WARNINGS, + .procname = "warnings", + .data = &net_msg_warn, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &proc_dointvec + }, { .ctl_name = 0 } }; |