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

Arduino_101 doesn't response ipv6 ping request affer enable echo_client ipv6 #2899

Closed zephyrbot closed 7 years ago

zephyrbot commented 7 years ago

Reported by jiequan wu:

Configuration

x86 Bug detailed description =================== Arduino_101 doesn't response ipv6 ping request affer enable echo_client ipv6 Patch ======== https://gerrit.zephyrproject.org/r/#/q/status:open+project:zephyr+branch:net+topic:ethernet Steps to Reproduce ================== 1. Apply patch to zephyr 2. cd samples/net/echo_client 3. Enable ipv6 and disable ipv4 prj_arduino_101.conf: CONFIG_NET_IPV4=n CONFIG_NET_IPV6=y 4. make pristine && make BOARD=arduino_101 flash 5. Connect Arduino to the LAN with ENC28J60 6. Set ipv6 address on Ubuntu $ sudo ifconfig eth1 inet6 add 2001:0db8::2/64 7. open serial port 8. ping6 2001:0db8::1 Expected Result ============= Arduino_101 can response ipv6 ping request affer enable echo_client ipv6 Actual Result ========== Arduino_101 doesn't response ipv6 ping request affer enable echo_client ipv6 zephyr/samples/net/echo_client$ ping6 2001:0db8::1 PING 2001:0db8::1(2001:db8::1) 56 data bytes From 2001:db8::2 icmp_seq=24 Destination unreachable: Address unreachable From 2001:db8::2 icmp_seq=37 Destination unreachable: Address unreachable From 2001:db8::2 icmp_seq=38 Destination unreachable: Address unreachable From 2001:db8::2 icmp_seq=39 Destination unreachable: Address unreachable (Imported from Jira ZEP-1422)
zephyrbot commented 7 years ago

by jiequan wu:

above patch comes from GH-2839.

zephyrbot commented 7 years ago

by jiequan wu:

And on master branch(commit id: 9849df8c803acb92cdcf599a453a8cd6040a3916),I do not apply above patchs, the echo_client and echo_server also doesn't response ipv6 ping request affer enable echo_client ipv6.

zephyrbot commented 7 years ago

by Andrei Laperie:

Tomasz, please have a look at the issue

zephyrbot commented 7 years ago

by Tomasz Bursztyka:

That's a duplicate of: ZEP-1361

zephyrbot commented 7 years ago

by Andrei Laperie:

duplicate of ZEP-1361

zephyrbot commented 7 years ago

by jiequan wu:

I test latest commit echo_client(echo_server is also) after enable ipv6, but arduino_101 doesn't response ipv6 ping request.(commit id :8053024752a72e2f0553f556c4ca2aea1883b01d && branch:net)

zephyrbot commented 7 years ago

by Tomasz Bursztyka:

See GH-2947 Looks like an enc28j60 issue to me, as all works on other boards with different ethernet driver.

zephyrbot commented 7 years ago

by Flavio Santes:

GH-2839 was closed once IPv4 was working, so perhaps there is an issue with the interaction between L2 and L3 when IPv6 is selected.

RE GH-2947, A101/ENC/IPv4 is working fine on top of master (4085e26cdbf2cbedd6d9253fc7331fc170bad09d) and net branch (91fd2929f47d3f29dbedbe57209bf9ea0b1fdd6f).

zephyrbot commented 7 years ago

by Tomasz Bursztyka:

Ok it was an issue I introduced in ethernet when fixing this padding thing. Of course I tested it only for ipv4... ;S

zephyrbot commented 7 years ago

by Mark Linkmeyer:

Correcting the priority field