lkml.org 
[lkml]   [1998]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: net/ipv4 sysctl - Programming help request
Date
In muc.lists.linux-kernel, you wrote:
>Hi all,
>
>Okay, I added the icmp_ignore_bogus_error_responses sysctl in
>/proc/sys/net/ipv4 recently. That's fine - It's boolean and
>simple.

We already have too many obscure sysctls. Simply log it the first time and
ignore it later.

>
>Following Alan Cox's suggestions, I want to add another sysctl which
>simply holds the last 3 (or whatever) IPs that have sent such bogus
>error responses.
>
>(This is so users can turn off the annoying repeating messages, but still
>check which IPs are responsible).
>
>What's the best way of putting this in? Essentially a Read-Only sysctl,
>but where should I store the data?

In a global variable, which is an array of ints. As an example see the
freepages sysctl entry in kernel/sysctl:vm_table[]

>C'mon, I'm sure there are some sysctl gurus out there just salivating at
>the chance of helping here. ;)

Pff..


-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.031 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site