<div dir="ltr">Hi Sebastian,<div><br></div><div>Thank you for your quick answer.</div><div>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.</div><div><br></div><div>Best Regards</div><div>Mirek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 12 sty 2023 o 04:39 Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Miroslaw,<br>
<br>
On 11.01.23 23:57, Miroslaw Dach wrote:<br>
> I use RTEMS5 on mvme3100.<br>
> I would like to read network statistics. I am interested in the <br>
> transmitted and received bytes and packets.<br>
> There is a function call<br>
> *rtems_bsdnet_show_if_stats (void)*<br>
> in<br>
> *./cpukit/libnetworking/rtems/rtems_showifstat.c*<br>
> which uses the BSP specific call:<br>
> *(*ifp->if_ioctl)(ifp, SIO_RTEMS_SHOW_STATS, NULL);*<br>
> which calls the BSP related function:<br>
> *BSP_tsec_dump_stats()*<br>
> in<br>
> *bsps/powerpc/mvme3100/net/tsec.c*<br>
> <br>
> Is there a way to retrieve the network statistics in the generic way BSP <br>
> independent?<br>
<br>
in the old network stack (it is included in RTEMS 5, in RTEMS 6 it was <br>
moved to a separate repository), the network statistics are <br>
BSP-specific. In the new network stack (libbsd), the statistics have a <br>
standard interface.<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax:   +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
</blockquote></div>