gnrc_ipv6: accept packets for global dst at all interfaces#4738
gnrc_ipv6: accept packets for global dst at all interfaces#4738OlegHahm merged 1 commit intoRIOT-OS:masterfrom
Conversation
|
How did you test this? I tried this using the same setup as in #4456. This PR only touches forwarding (as only _pkt_not_for_me is changed). |
Sorry, not correct... |
|
Ok, I tested a wrong setup (using link-local addresses and a fib default route). |
| else if ((!ipv6_addr_is_link_local(&hdr->dst)) || | ||
| (*iface == KERNEL_PID_UNDEF)) { | ||
| kernel_pid_t if_pid = gnrc_ipv6_netif_find_by_addr(NULL, &hdr->dst); | ||
| if (*iface != KERNEL_PID_UNDEF) { |
There was a problem hiding this comment.
*iface == KERNEL_PID_UNDEF?
There was a problem hiding this comment.
Wait no, it should be changed in any case. :-)
There was a problem hiding this comment.
okay, let's think about this ... to fix the @kaspar030's issue *iface must not be changed at all (in that case *iface shouldn't be KERNEL_PID_UNDEF). If no interface is given (*iface == KERNEL_PID_UNDEF) *iface should be overwritten. So your original comment was correct.
|
Addressed @Yonezawa-T2's comment. |
|
@kaspar030 can you test again? Only read your corrections afterwards..... Now I'm not sure this is actually a fix. Will revert as soon as you say this isn't working anymore. |
|
looks good. ACK |
|
Needs squashing. |
|
I just re-checked that this fixes the bug where RIOT was not answering to all of it's addresses. |
1471c21 to
5532f92
Compare
|
Squashed. |
Alternative to #4456.