ravi varma
|
kerne structures related to PPPmgr and nicinfo
|
ravi varma
12/11/2008 11:56 PM
post18472
|
kerne structures related to PPPmgr and nicinfo
Hi
I need to know traffic on my ppp link and also on network interface.
Right now i am using
cat /dev/socket/pppmgr > file and then reading form file, but i want to know structure/functions which that mainitanns
these info in kernel.
and also regarding netwrok interfce i use nicinfo, netstat etc and i also found few strsuctures ...
nic_stats_t, nic_config_t ..... but if i have two or three network interfaces, how i can differntiate structure
specific to interface....
OK the way in which i am using is by creating pointer to these structures and trying to fetch data..
nic_stats_t *nicstat_str;
Revision_number = nicstat_str->revision;
Thanks
Ravi
|
|
|