I would liek grab certain TCP stats from the
/proc/net/netstat and /proc/net/tcp entries from
...
The other way involves trying to find the variables
that are displayed in those proc files. I know that
the netstat /proc read_proc function is defined in
net/ipv4/proc.c but I don't know how to grab those
stats it displays directly from there.
Take a look at tcp_get_info() & netstat_get_info().
--Swapnil
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/