[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking the functioning of an ipchains module



On 2 Dec 2001, Noam Meltzer wrote:

> 10x to mulix i got the direction I needed. There's a directory
> "/proc/net/ip_masq/" (accurate for ipchains on 2.2.20, i dunno about
> netfilter) which has information about all the modules loaded. Specific
> to the module i was intersted about - ip_masq_icq.o there's a subdir in
> the directory, called "icq" which has much more information.
> What I didn't understand/foundout is if I can change information there
> "live" (like when you do "echo "1" > /proc/sys/net/ipv4/ip_forward").

assumption: this directory is documented.
problem: find the documentation.
solution: check google, and then check the relevant mailing list
archives, in this order.

more plausible assumption: this directory is not documented anywhere.
problem: figure out if you can change values.
solution: use the source, luke. luckily for you, it's a self contained
piece of code (the ip_masq_icq module), so you dont have to grep around
the whole kernel. read it, look for inline comments, look for any
comments dealing with the /proc file system. with a bit of digging and
luck, you'll find out.
-- 
mulix

http://www.pointer.co.il/~mulix/
http://syscalltrack.sf.net/



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il