zephyr/subsys
Robert Lubos 6c0aef4da0 net: sockets: packet: Ensure correct interface is used
Make sure that when sendto is being used without the socket being bound
before, a correct interface is used for transmission. As
zpacket_sendto_ctx() calls net_context_recv() to register receive
callback before sending, a default binding was used by the context
layer, which would bind the socket to the default interface. This could
lead to unexpected results, i.e. packet being sent on a default
interface, even though a different one was specified.

Make also sure that there is no ambiguity in the interface selection -
the application should be explicitly clear what interface it wants to
use when it comes to packet sockets. It's better to return an error if
no valid interface was specified.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-17 17:23:23 +02:00
..
bindesc
bluetooth bluetooth: increase stack size for NO_OPTIMIZATIONS 2025-04-16 17:08:02 +02:00
canbus
console
dap dap: add DAP backend USB 2025-03-11 18:54:24 +01:00
debug debug: cpu_load: Add missing static keyword 2025-04-16 14:53:30 +02:00
demand_paging
dfu dfu: Add support for new MCUboot swap using offset mode 2025-02-10 19:05:25 +01:00
disk
dsp
emul
fb cfb: typo fixes 2025-04-02 10:30:50 +02:00
fs zms: add more robustiness in extreme cases 2025-04-16 20:36:49 +02:00
input
ipc ipc_service: ipc_icbmsg: Update backend API return values 2025-03-28 12:21:30 +01:00
jwt
llext llext: optimize allocations for read-only sections 2025-03-21 14:41:30 -04:00
logging logging: frontends: stmesp: Fix sending string location 2025-04-01 16:26:50 +02:00
lorawan lorawan: add link check support. 2025-04-17 17:23:12 +02:00
mctp
mem_mgmt
mgmt arch: arm: Add Cortex-A7 support 2025-04-04 09:35:03 +02:00
modbus modbus: initialize return variable. 2025-01-21 19:28:52 +01:00
modem modem: cmux: Do not return error on low buffer space 2025-03-24 19:33:07 +01:00
net net: sockets: packet: Ensure correct interface is used 2025-04-17 17:23:23 +02:00
pm pm: device: correct state in pm_device_driver_init 2025-04-11 14:53:53 +02:00
portability portability: cmsis: Avoid copying objects names into control block 2025-04-14 20:03:19 +02:00
profiling arch: remove z_arch_esf_t 2025-01-23 16:32:36 +01:00
random random: Correct Mutex define 2025-03-04 21:55:45 +01:00
retention
rtio rtio: Transactions assume valid next list nodes 2025-03-14 01:02:10 +01:00
sd sd: correct mismatched comment for CONFIG_SDMMC_STACK 2025-03-31 21:59:40 +02:00
secure_storage secure_storage: its: store: settings: allow using custom setting names 2025-04-08 14:22:59 +02:00
sensing
settings settings: fix settings shell subcommand helper 2025-03-29 06:31:39 +01:00
shell shell: mqtt: use ring_buf_reset to flush rx_rb 2025-04-09 22:06:05 +02:00
sip_svc
stats
storage storage: flash_map: add flash_area_copy() 2025-04-14 16:07:35 +02:00
task_wdt task_wdt: Add suspend and resume API functions 2025-04-02 13:05:14 +02:00
testsuite ztest: Fix confusing SKIP log 2025-04-04 21:16:34 +02:00
timing
tracing kernel: kheap: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
usb usb: device_next: Change speed selection Kconfig dependency 2025-04-10 12:57:19 +02:00
zbus zbus: remove k_malloc dependency for ZBUS_RUNTIME_OBSERVERS 2025-04-14 20:03:09 +02:00
CMakeLists.txt
Kconfig