`addrlen` parameter is updated on each `recvfrom` call, indicating the actual address length returned. In case both, IPv4 and IPv6 are used on different sockets (i. e. on regular LWM2M socket and FOTA socket), the returned address length will differ. In case `from_addr_len` is not reinitialized on each iteration, the value stored in the `from_addr_len` variable will eventually indicate the smaller IPv4 address size, therefore resulting in a failure in a consecutive call on an IPv6 socket. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||