Files
RedBear-OS/netstack
vasilito 6860e49623 netstack: round 18 part 3 — fix SocketCall::from misuse (last compile error)
scheme/tcp.rs:57 — SocketCall::from(metadata[0]) does not exist.
SocketCall in the libredox-protocol crate exposes a
'try_from_raw(usize) -> Option<Self>' helper (used in
scheme/socket.rs:466) but no 'From<u64>'. Match on the Option
and return EINVAL on unknown verbs; otherwise the same
SocketCall::SendMsg arm as before and the catch-all
EOPNOTSUPP for any other verb.

This is the last of the 13 build errors from the original
netstack break cascade. After this commit, netstack compiles
clean with only 40 warnings (unused imports/variables and a
handful of unreachable-pattern arms left as dead-code
defenses). Warnings are tracked for a future cleanup round.
2026-07-28 07:02:30 +09:00
..