Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - kerne structures related to PPPmgr and nicinfo: (4 Items)
   
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 
RE: kerne structures related to PPPmgr and nicinfo  
The source to nicinfo is available in the Foundry under
trunk/utils/n/nicinfo.

	Robert. 

-----Original Message-----
From: ravi varma [mailto:community-noreply@qnx.com] 
Sent: Thursday, December 11, 2008 11:56 PM
To: general-networking
Subject: 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 

_______________________________________________
General
http://community.qnx.com/sf/go/post18472
Re: RE: kerne structures related to PPPmgr and nicinfo  
Hi Robert

Thanks for information, i am able to locate required data realted to nicinfo, but not able to find out any content 
related to ppp and pppmgr.
could you help in that ..i even serached other folder under /trunk/utils


Thanks
Ravi 

> The source to nicinfo is available in the Foundry under
> trunk/utils/n/nicinfo.
> 
> 	Robert. 
> 
> -----Original Message-----
> From: ravi varma [mailto:community-noreply@qnx.com] 
> Sent: Thursday, December 11, 2008 11:56 PM
> To: general-networking
> Subject: 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 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18472


Re: RE: kerne structures related to PPPmgr and nicinfo  
Hi Robert

I found data related to ppp at trunk / services / pppd / ....

Ravi 


> 
> Thanks for information, i am able to locate required data realted to nicinfo, 
> but not able to find out any content related to ppp and pppmgr.
> could you help in that ..i even serached other folder under /trunk/utils
> 
> 
> Thanks
> Ravi 
> 
> > The source to nicinfo is available in the Foundry under
> > trunk/utils/n/nicinfo.
> > 
> > 	Robert. 
> > 
> > -----Original Message-----
> > From: ravi varma [mailto:community-noreply@qnx.com] 
> > Sent: Thursday, December 11, 2008 11:56 PM
> > To: general-networking
> > Subject: 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 
> > 
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post18472
> 
>