Changelog
Latest Changes
- Branch:
- develop
- Commit:
csp_route: Hoist endpoint resolution and security check by Yasushi SHOJI at 2026-08-10 11:04:56
The security check was duplicated in every delivery path, and each path had to know which endpoint type it was handling before the packet had even been validated. Resolve the endpoint first: an existing connection, or the bound socket. Run csp_route_security_check() once with the resolved endpoint options, then branch on connection-less versus connection-oriented delivery. This makes the dual endpoint types of libcsp explicit: a connection-less socket is an endpoint itself, while connection-oriented traffic terminates in a connection. A connection-less socket port never matches an existing connection, because connections use ephemeral or server-side port pairs, so the lookup order does not change behavior. No functionality has been changed. Assisted-by: GitHub Copilot CLI:claude-fable-5 Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>