mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
eb4df019af
Build Documentation / build-html (push) Has been cancelled
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>