View previous topic :: View next topic |
Author |
Message |
hopezhu
Joined: 28 Mar 2008 Posts: 3
|
Posted: Fri Mar 28, 2008 10:52 am Post subject: some questions about porting miniupnp to vxworks |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1587
|
Posted: Fri Mar 28, 2008 2:20 pm Post subject: Re: some questions about porting miniupnp to vxworks |
|
|
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.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
hopezhu
Joined: 28 Mar 2008 Posts: 3
|
Posted: Sat Mar 29, 2008 1:15 pm Post subject: Re: some questions about porting miniupnp to vxworks |
|
|
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 |
|
 |
|
|
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
© 2007 Thomas Bernard, author of MiniUPNP.
|