Skip to content

Commit

Permalink
pico_socket_xmit_one: pico_ipv6_source_dev_find requires PICO_SUPPORT…
Browse files Browse the repository at this point in the history
…_IPV6
  • Loading branch information
scribam authored and danielinux committed Feb 26, 2022
1 parent 72ffa74 commit 529074a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stack/pico_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1126,11 +1126,11 @@ static int pico_socket_xmit_one(struct pico_socket *s, const void *buf, const in
#ifdef PICO_SUPPORT_IPV6
else if (IS_SOCK_IPV6(s) && ep && pico_ipv6_is_multicast(&ep->remote_addr.ip6.addr[0])) {
dev = pico_ipv6_link_find(s->stack, src);
} else if (IS_SOCK_IPV6(s) && ep) {
dev = pico_ipv6_source_dev_find(s->stack, &ep->remote_addr.ip6);
}
#endif
else if (IS_SOCK_IPV6(s) && ep) {
dev = pico_ipv6_source_dev_find(s->stack, &ep->remote_addr.ip6);
} else if (IS_SOCK_IPV4(s) && ep) {
else if (IS_SOCK_IPV4(s) && ep) {
dev = pico_ipv4_source_dev_find(s->stack, &ep->remote_addr.ip4);
} else {
dev = get_sock_dev(s);
Expand Down

0 comments on commit 529074a

Please sign in to comment.