nuttx/net/devif
zhanghongyu 0dc0b94380 net/ipv4: check whether the length of the ipv4 option is correct
This patch adds validation for IPv4 option lengths during packet processing
to prevent malformed packets from causing undefined behavior. The new
ipv4_check_opt() function verifies that option lengths are within valid
bounds before processing them.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-01-15 16:14:19 -03:00
..
CMakeLists.txt net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00
devif.h devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
devif_callback.c net: replace net_sem*wait with conn_dev_sem*wait to simplify code logic 2026-01-02 07:48:06 -03:00
devif_filesend.c fix misspelled names in locally scoped code 2025-05-15 10:12:12 +08:00
devif_forward.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
devif_iobsend.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
devif_loopback.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
devif_poll.c net/ieee802154: replace net_lock with conn_lock and conn_lock_dev 2026-01-02 07:48:06 -03:00
devif_send.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
ipv4_input.c net/ipv4: check whether the length of the ipv4 option is correct 2026-01-15 16:14:19 -03:00
ipv6_input.c net/ipv6: Drop IP packet shorter than length in IP header 2025-12-30 11:28:38 +08:00
Make.defs net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00