Do you have a question? Post it now! No Registration Necessary
March 7, 2005, 10:56 am

Hi there!
I would like to read the TCP statistics from the /proc/net/netstat and
/proc/net/tcp entries from within my own 2.6 kernel module (Fedora 3) . I am
wondering how I can approach this problem. I know that there is a netstat
function defined in net/ipv4/proc.c but I am not sure how to access the
variables in there. Or, is there a way to read directly from a /proc entry
in a module ?
Please help, thank you in advance!
D2
I would like to read the TCP statistics from the /proc/net/netstat and
/proc/net/tcp entries from within my own 2.6 kernel module (Fedora 3) . I am
wondering how I can approach this problem. I know that there is a netstat
function defined in net/ipv4/proc.c but I am not sure how to access the
variables in there. Or, is there a way to read directly from a /proc entry
in a module ?
Please help, thank you in advance!
D2
Site Timeline
- » SBC with S-ATA
- — Next thread in » Embedded Linux
-
- » any suggestions? please help
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Co wetknÄ…c w dziury o rastrze 1.27?
- — The site's Newest Thread. Posted in » Electronics (Polish)
-