<div dir="ltr">I see thanks.<div><br></div><div>Any idea or documentation on how to do that on qemu? I'm afraid that my experience is rather limited.</div><div><br></div><div>I'm running on qemu 2.10 using the xilinx_zynq_a9_qemu bsp.</div><div><br></div><div>Thank you for your time.</div><div><br></div><div>Kind regards,</div><div>Niko</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 29, 2018 at 7:01 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 28/06/18 14:09, Nicolas Tsiogkas wrote:<br>
> Hi,<br>
><br>
> I have observed a weird behaviour while setting the BIOCSRTIMEOUT for <br>
> a bpf.<br>
><br>
> When setting it to low values (less than a second) as it can be seen <br>
> below the bpf is actually blocking instead of waiting and continuing.<br>
><br>
> struct timeval timeout;<br>
> timeout.tv_sec =  0;<br>
> timeout.tv_usec = 1;<br>
> if (ioctl(*bpf, BIOCSRTIMEOUT, &timeout) == -1) {<br>
> perror("BIOCSRTIMEOUT");<br>
>   return 0;<br>
> }<br>
><br>
> This was working with the libbsd 4.11 branch. Is this a known bug?<br>
<br>
No, we use the bpf with libpcap on the master. You have to debug this.<br>
<br>
><br>
> In addition the bpf is not receiving/reading anything incoming while <br>
> with wireshark I can confirm that there are things on the wire and the <br>
> bpf is in promiscuous mode. Still this was working on the 4.11 branch. <br>
> Any idea on how to debug this?<br>
<br>
I would set a break point to the network interface receive function and <br>
then follow the path of the Ethernet frame.<br>
<br>
><br>
> Thanks in advance.<br>
><br>
> Cheers,<br>
> Niko<br>
><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</blockquote></div>