RTEMS5 and network statistics

Miroslaw Dach miroslaw.dach at gmail.com
Thu Jan 12 19:42:45 UTC 2023


Hi Sebastian,

Thank you for your quick answer.
Yes, indeed I use the old network stack in RTEMS5 so in this case I do not
have much choice and I have to use the BSP-specific approach.

Best Regards
Mirek

czw., 12 sty 2023 o 04:39 Sebastian Huber <
sebastian.huber at embedded-brains.de> napisał(a):

> 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.huber at 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20230112/5836b238/attachment.htm>


More information about the users mailing list