Hello Miroslaw,

On 11.01.23 23:57, Miroslaw Dach wrote:
I use RTEMS5 on mvme3100.
I would like to read network statistics. I am interested in the transmitted and received bytes and packets.
There is a function call
*rtems_bsdnet_show_if_stats (void)*
in
*./cpukit/libnetworking/rtems/rtems_showifstat.c*
which uses the BSP specific call:
*(*ifp->if_ioctl)(ifp, SIO_RTEMS_SHOW_STATS, NULL);*
which calls the BSP related function:
*BSP_tsec_dump_stats()*
in
*bsps/powerpc/mvme3100/net/tsec.c*

Is there a way to retrieve the network statistics in the generic way BSP independent?

in the old network stack (it is included in RTEMS 5, in RTEMS 6 it was moved to a separate repository), the network statistics are BSP-specific. In the new network stack (libbsd), the statistics have a standard interface.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to