LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Header file for struct ifstats (https://www.linuxquestions.org/questions/programming-9/header-file-for-struct-ifstats-609543/)

yhus 12-27-2007 11:46 PM

Header file for struct ifstats
 
Hi,

Which header file contains struct ifstats and SIOCGIFSTATS? I searched from google, but could not find it.

In general, how can I set a program manual in my Debian box to search and find all library functions as well as structs by man?

Thank you.

Jim

tronayne 12-28-2007 07:59 AM

Searching through /usr/doc, there are two mentions of "ifstats:"
Code:

/usr/doc/iptraf-3.0.0/CHANGES
/usr/doc/ntp-4.2.4p0/html/ntpdc.html

Might be worth looking through the source code for these? IPtraf (found at http://iptraf.seul.org); these files contain ifstats:
Code:

./iptraf-3.0.0/src/Makefile
./iptraf-3.0.0/src/log.c
./iptraf-3.0.0/src/ifstats.c
./iptraf-3.0.0/src/ifstats.h
./iptraf-3.0.0/src/iptraf.c
./iptraf-3.0.0/src/externs.h
./iptraf-3.0.0/src/promisc.c
./iptraf-3.0.0/CHANGES

I usually stat with /usr/doc and do something like
Code:

find . -type f -print | xargs fgrep -l ifstats
then look at any files that pop up; now, that ain't always going to do it but it's usually a good place to start...


All times are GMT -5. The time now is 02:00 AM.