rtems-libbsd bpf BIOCSRTIMEOUT behaviour

Nicolas Tsiogkas lou.nick at gmail.com
Tue Jul 3 10:00:10 UTC 2018


Hi,

So I have done some debugging.

there were 2 issues.

First issue regarding the timer is the way the timeout is calculated. It
requires at least 11 milliseconds of timeout to be able to handle it.

Second issue that I faced is that flags were not passed correctly to the
bpfopen function so the bpf was not opened in read/write mode. That's why
packets were not received.

Attaching a patch.

Thanks for the help!

Cheers,
Niko

On Fri, Jun 29, 2018 at 9:40 AM Nicolas Tsiogkas <lou.nick at gmail.com> wrote:

> Thanks!
>
> Shouldn't net have some device though since I want to debug the networking
> stack?
>
> For now I run it with -nographic -serial stdio -serial
> mon:tcp:localhost:12456 -M xilinx-zynq-a9 -net
> nic,model=cadence_gem,macaddr=0e:b0:ba:5e:ba:11 -net
> tap,ifname=tap0,script=no,downscript=no -m 256M -kernel slaveinfo.exe
>
> I'll check soon and report back. Thanks again!
>
> Cheers,
> Niko
>
> On Fri, Jun 29, 2018 at 9:32 AM Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
>
>> On 29/06/18 09:14, Nicolas Tsiogkas wrote:
>> > I see thanks.
>> >
>> > Any idea or documentation on how to do that on qemu? I'm afraid that
>> > my experience is rather limited.
>> >
>> > I'm running on qemu 2.10 using the xilinx_zynq_a9_qemu bsp.
>>
>> You can run the xilinx_zynq_a9_qemu with
>>
>> QEMU_AUDIO_DRV=none qemu-system-arm  -serial null -serial mon:stdio -net
>> none  -nographic -M xilinx-zynq-a9 -m 256M  -kernel app.exe -s -S
>>
>> It waits for a GDB client connection on localhost:1234.
>>
>> --
>> Sebastian Huber, embedded brains GmbH
>>
>> Address : Dornierstr. 4, D-82178 Puchheim, Germany
>> Phone   : +49 89 189 47 41-16
>> Fax     : +49 89 189 47 41-09
>> E-Mail  : sebastian.huber at embedded-brains.de
>> PGP     : Public key available on request.
>>
>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180703/2a68b71f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 378 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20180703/2a68b71f/attachment.bin>


More information about the users mailing list