zephyriot / zep-jira14

0 stars 0 forks source link

dns_client ipv4 runs failed #1533

Closed nashif closed 7 years ago

nashif commented 7 years ago

Reported by jiequan wu:

Configuration

x86 Bug detailed description =================== dns_client ipv4 runs failed ================== 1. Connect Arduino to the LAN with ENC28J60 2. Set ipv4 address on Ubuntu $ sudo ifconfig eth1 192.168.1.10/24 3. dnsmasq -i eth1 -p 5353 -d 4. cd samples/net/dns_client 5. prj_arduino_101.conf: CONFIG_NET_IPV4=y CONFIG_NET_IPV6=n 6. make pristine && make BOARD=arduino_101 flash 7. open serial port ======== Actual Result ========== ``` ------------------------------------------- [run_dns:86] name: not_a_real_domain_name rc: -5 ------------------------------------------- [run_dns:86] name: zephyrproject.org rc: -5 ------------------------------------------- [run_dns:86] name: linux.org rc: -5 ------------------------------------------- [run_dns:86] name: www.zephyrproject.org rc: -5 ------------------------------------------- [run_dns:86] name: kernel.org rc: -5 ------------------------------------------- [run_dns:86] name: gerrit.zephyrproject.org rc: -5 ------------------------------------------- [run_dns:86] name: linuxfoundation.org rc: -5 ------------------------------------------- [run_dns:86] name: jira.zephyrproject.org rc: -5 ------------------------------------------- [run_dns:86] name: www.wikipedia.org rc: -5 ------------------------------------------- [run_dns:86] name: collabprojects.linuxfoundation.org rc: -5 ------------------------------------------- [run_dns:86] name: gcc.gnu.org rc: -5 ------------------------------------------- [run_dns:86] name: events.linuxfoundation.org rc: -5 ------------------------------------------- [run_dns:86] name: www.google.com rc: -5 Bye! ``` (Imported from Jira ZEP-1680)
nashif commented 7 years ago

by jiequan wu:

And I tested again on master branch&commit id 7a992aeb(jira GH-700), it is fine.

nashif commented 7 years ago

by Jukka Rissanen:

Tried this with latest net branch (commit 85103e15de3fac) and with qemu but using different IP address space (192.0.2/24). I found no issues.

nashif commented 7 years ago

by Flavio Santes:

So, I guess there is a configuration issue from your side.

nashif commented 7 years ago

by jiequan wu:

BTW, about the dns_client on qemu, I see the command ($ ip addr add 192.0.2.2/24 dev tap0) in README.rst file. But in the prj_qemu_x86.conf:CONFIG_NET_SAMPLES_MY_IPV4_ADDR="192.168.1.101" CONFIG_NET_SAMPLES_PEER_IPV4_ADDR="192.168.1.10". And when run 'loop_socat.sh' and 'loop-slip-tap.sh', the ipv4 address of tap0 is set to 192.0.2.2/24 automatically.

nashif commented 7 years ago

by Flavio Santes:

That's right, at some point the prj for qemu must be updated (again), Thanks.