You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling recvfrom on a socket(AddressFamily::Packet, SockType::Datagram, ...) socket I receive this panic from inside nix::sys::socket::sockaddr_storage_to_addr:
thread 'main' panicked at 'unexpected address family 17', /usr/local/cargo/registry/src/git.luolix.top-1ecc6299db9ec823/nix-0.19.0/src/sys/socket/mod.rs:1744:15
stack backtrace:
0: rust_begin_unwind
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
1: std::panicking::begin_panic_fmt
at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:429
2: nix::sys::socket::sockaddr_storage_to_addr
at /usr/local/cargo/registry/src/git.luolix.top-1ecc6299db9ec823/nix-0.19.0/src/sys/socket/mod.rs:1744
3: nix::sys::socket::recvfrom
at /usr/local/cargo/registry/src/git.luolix.top-1ecc6299db9ec823/nix-0.19.0/src/sys/socket/mod.rs:1540
It appears that this function doesn't have a handler for this address family, even though it appears supported on all other fronts.
The panic also made it impossible to handle this in some other way, but apart from adding a SockAddr::Unknown, or hijacking some Errno, I don't see any option that would make sense API wise.
The text was updated successfully, but these errors were encountered:
When calling
recvfrom
on asocket(AddressFamily::Packet, SockType::Datagram, ...)
socket I receive this panic from insidenix::sys::socket::sockaddr_storage_to_addr
:It appears that this function doesn't have a handler for this address family, even though it appears supported on all other fronts.
The panic also made it impossible to handle this in some other way, but apart from adding a
SockAddr::Unknown
, or hijacking some Errno, I don't see any option that would make sense API wise.The text was updated successfully, but these errors were encountered: