nuttx/net/ipforward
Shunchao Hu eb4df019af net/ipforward: Forbid non-forwardable multicast scopes.
RFC 3171 reserves 224.0.0.0/24 for link-local IPv4 multicast
scope, so packets in this range must not be forwarded by routers,
regardless of the TTL value.

IPv6 also defines multicast scopes that must not be forwarded beyond
the local topology. In particular, interface-local and link-local
multicast destinations must not be routed across interfaces.

Add IPv4/IPv6 scope checks so non-forwardable multicast packets are
rejected before entering the multicast forwarding path.

Signed-off-by: Shunchao Hu <ankohuu@gmail.com>
2026-04-18 19:54:59 -03:00
..
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
ipforward.h net/net_initialize: remove the empty functions that are not needed 2025-12-25 09:50:40 +08:00
ipfwd_alloc.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ipfwd_dropstats.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
ipfwd_forward.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ipfwd_poll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
ipv4_forward.c net/ipforward: Forbid non-forwardable multicast scopes. 2026-04-18 19:54:59 -03:00
ipv6_forward.c net/ipforward: Forbid non-forwardable multicast scopes. 2026-04-18 19:54:59 -03:00
Kconfig net: Enable dynamic allocation of tcp/udp/ipfwd buffer by default 2025-01-07 22:00:21 +08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00