zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.44k stars 6.4k forks source link

dns_client ipv4 runs failed #3133

Closed zephyrbot closed 7 years ago

zephyrbot 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 ========== {code} ------------------------------------------- [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! {code} (Imported from Jira ZEP-1680)
zephyrbot commented 7 years ago

by jiequan wu:

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

zephyrbot 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.

zephyrbot commented 7 years ago

by Flavio Santes:

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

zephyrbot 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:{code}CONFIG_NET_SAMPLES_MY_IPV4_ADDR="192.168.1.101" CONFIG_NET_SAMPLES_PEER_IPV4_ADDR="192.168.1.10"{code}. 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.

zephyrbot commented 7 years ago

by Flavio Santes:

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