Files
RedBear-OS/netstack
Red Bear OS 181eb63dd2 netstack: SocketT trait + all impls take (level, name) for sockopt
DEF-P0-11 (Finding 1.7: option collision) from
NETWORKING-AND-DRIVERS-CODE-ASSESSMENT-2026-07-27.md §3.4: SocketT
trait methods get_sock_opt and set_sock_opt previously took a single
'name' parameter. The dispatch in scheme/socket.rs now reads
metadata[1] as level and metadata[2] as name, but the trait didn't
have the level parameter. This commit updates the trait and all
impls (socket.rs stub, tcp.rs, udp.rs) to take (level, name) as
separate parameters. The impls ignore level for now (each impl
only handles its own protocol family), but the parameter is there
so future per-level dispatch (e.g. 'IP_TTL only valid at
IPPROTO_IP') can reject early with ENOPROTOOPT.
2026-07-27 18:02:15 +09:00
..