miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

some questions about porting miniupnp to vxworks

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP
View previous topic :: View next topic  
Author Message
hopezhu



Joined: 28 Mar 2008
Posts: 3

PostPosted: Fri Mar 28, 2008 10:52 am    Post subject: some questions about porting miniupnp to vxworks Reply with quote

there is a function named getifstats(const char * ifname, struct ifdata * data) ,i don't know that this variable " kn->value.i64"(data->ibytes = kn->value.i64) record what in linux system, and please give out some explanation about the function getifstats().thank you for your help.

ps : i noticed that a member named allen have asked something about porting to vxworks , may i get his email and contact to him?
thanks a lot!
Back to top
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1442

PostPosted: Fri Mar 28, 2008 2:20 pm    Post subject: Re: some questions about porting miniupnp to vxworks Reply with quote

hopezhu wrote:
there is a function named getifstats(const char * ifname, struct ifdata * data) ,i don't know that this variable " kn->value.i64"(data->ibytes = kn->value.i64) record what in linux system, and please give out some explanation about the function getifstats().thank you for your help.

ps : i noticed that a member named allen have asked something about porting to vxworks , may i get his email and contact to him?
thanks a lot!

The getifstats() function fills the struct ifdata with network interface statistics and bitrate.
Here is an output from the "ifconfig" command in linux :
Code:
        RX packets:132167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:81 lg file transmission:1000
          RX bytes:153370597 (146.2 MiB)  TX bytes:15758727 (15.0 MiB)

opackets is TX packets value, ipackets is RX packets value, obytes is TX bytes, ibytes is RX bytes value.
baudrate is the bitrate of the interface (usually 10Mb or 100Mb for ethernet interface).

I'll send you the email of allen.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
hopezhu



Joined: 28 Mar 2008
Posts: 3

PostPosted: Sat Mar 29, 2008 1:15 pm    Post subject: Re: some questions about porting miniupnp to vxworks Reply with quote

miniupnp wrote:
hopezhu wrote:
there is a function named getifstats(const char * ifname, struct ifdata * data) ,i don't know that this variable " kn->value.i64"(data->ibytes = kn->value.i64) record what in linux system, and please give out some explanation about the function getifstats().thank you for your help.

ps : i noticed that a member named allen have asked something about porting to vxworks , may i get his email and contact to him?
thanks a lot!

The getifstats() function fills the struct ifdata with network interface statistics and bitrate.
Here is an output from the "ifconfig" command in linux :
Code:
        RX packets:132167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:81 lg file transmission:1000
          RX bytes:153370597 (146.2 MiB)  TX bytes:15758727 (15.0 MiB)

opackets is TX packets value, ipackets is RX packets value, obytes is TX bytes, ibytes is RX bytes value.
baudrate is the bitrate of the interface (usually 10Mb or 100Mb for ethernet interface).

I'll send you the email of allen.

thank you for your reply.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> NAT/UPnP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.