"udp bind" and "udp send" commands use the same net context variable and they fail early if the context is already used. This prevents from using "udp send" after "udp bind", which makes the commands hard to use for testing bidirectional communication. Make "udp send" reuse the already bound context if possible, and resort to allocating temporary one otherwise. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| allocs.c | ||
| arp.c | ||
| capture.c | ||
| cm.c | ||
| CMakeLists.txt | ||
| conn.c | ||
| dhcpv4.c | ||
| dhcpv6.c | ||
| dns.c | ||
| events.c | ||
| filter.c | ||
| gptp.c | ||
| http.c | ||
| iface_dynamic.h | ||
| iface.c | ||
| ipv4.c | ||
| ipv6.c | ||
| mem.c | ||
| nbr.c | ||
| net_shell_private.h | ||
| net_shell.c | ||
| net_shell.h | ||
| ping.c | ||
| pkt.c | ||
| pmtu.c | ||
| ppp.c | ||
| resume.c | ||
| route.c | ||
| sockets.c | ||
| stats.c | ||
| suspend.c | ||
| tcp.c | ||
| udp.c | ||
| virtual.c | ||
| vlan.c | ||
| websocket.c | ||