Re: How to read /proc/net/netstat entry from within a kernel module

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

 




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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux