crosvm/net_util
Daniel Verkamp 1457967c08 net_util: clean up transmutes in create_sockaddr()
Rewrite create_sockaddr() using only safe type conversions instead of
the unsafe mem::transmute(), and add helper functions to do the sockaddr
to sockaddr_in (and vice versa) conversion safely.

BUG=b:365852007

Change-Id: I79690ebd1d10056800d46e8da1641ad44cb04b62
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5760286
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-11-05 00:09:04 +00:00
..
src net_util: clean up transmutes in create_sockaddr() 2024-11-05 00:09:04 +00:00
tests net_util, devices: refactor platform-specific net code 2023-11-27 19:23:56 +00:00
build.rs net_util/win_audio: Do not use cfg conditional compilation in build.rs 2023-05-09 20:27:26 +00:00
Cargo.toml Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
prebuilts_version net_util: Add windows slirp support 2022-10-11 15:25:38 +00:00