Searched refs:VsockAddr (Results 1 – 8 of 8) sorted by relevance
/external/rust/crates/vsock/src/ |
D | lib.rs | 41 pub use nix::sys::socket::{SockaddrLike, VsockAddr}; 94 Self::bind(&VsockAddr::new(cid, port)) in bind_with_cid_port() 98 pub fn local_addr(&self) -> Result<VsockAddr> { in local_addr() argument 108 pub fn accept(&self) -> Result<(VsockStream, VsockAddr)> { in accept() argument 130 VsockAddr::new(vsock_addr.svm_cid, vsock_addr.svm_port), in accept() 210 Self::connect(&VsockAddr::new(cid, port)) in connect_with_cid_port() 214 pub fn peer_addr(&self) -> Result<VsockAddr> { in peer_addr() argument 219 pub fn local_addr(&self) -> Result<VsockAddr> { in local_addr() argument
|
/external/rust/crates/virtio-drivers/src/device/socket/ |
D | protocol.rs | 86 pub fn source(&self) -> VsockAddr { in source() argument 87 VsockAddr { in source() 93 pub fn destination(&self) -> VsockAddr { in destination() argument 94 VsockAddr { in destination() 111 pub struct VsockAddr { struct
|
D | vsock.rs | 5 use super::protocol::{VirtioVsockConfig, VirtioVsockHdr, VirtioVsockOp, VsockAddr}; 26 dst: VsockAddr, 66 pub source: VsockAddr, 68 pub destination: VsockAddr, 213 dst: VsockAddr { in connect() 407 destination: VsockAddr { in poll_rx_queue() 440 destination: VsockAddr { in poll_rx_queue() 451 destination: VsockAddr { in poll_rx_queue()
|
/external/rust/crates/vsock/tests/ |
D | vsock.rs | 20 use vsock::{get_local_cid, VsockAddr, VsockListener, VsockStream, VMADDR_CID_HOST}; 47 VsockStream::connect(&VsockAddr::new(SERVER_CID, SERVER_PORT)).expect("connection failed"); in test_vsock() 82 let listener = VsockListener::bind(&VsockAddr::new(VMADDR_CID_HOST, LISTEN_PORT)).unwrap(); in test_listener_local_addr() 92 VsockStream::connect(&VsockAddr::new(SERVER_CID, SERVER_PORT)).expect("connection failed"); in test_stream_addresses()
|
/external/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 17 pub use self::vsock::VsockAddr; 1537 vsock: VsockAddr, 1627 VsockAddr::from_raw(addr, l).map(|vsock| Self { vsock }) in from_raw() 1792 accessors! {as_vsock_addr, as_vsock_addr_mut, VsockAddr, 2023 Vsock(VsockAddr), 2063 SockAddr::Vsock(VsockAddr::new(cid, port)) in new_vsock() 2169 Some(AddressFamily::Vsock) => Some(SockAddr::Vsock(VsockAddr( in from_libc_sockaddr() 2270 SockAddr::Vsock(VsockAddr(ref sa)) => ( in as_ffi_pair() 2873 pub struct VsockAddr(pub(in super::super) sockaddr_vm); struct 2875 impl private::SockaddrLikePriv for VsockAddr {} implementation [all …]
|
D | mod.rs | 70 pub use crate::sys::socket::addr::vsock::VsockAddr; 2448 Ok(SockAddr::Vsock(VsockAddr(svm))) in sockaddr_storage_to_addr()
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 2145 VsockAddr, in test_vsock() 2161 let sockaddr_hv = VsockAddr::new(libc::VMADDR_CID_HYPERVISOR, port); in test_vsock() 2164 let sockaddr_any = VsockAddr::new(libc::VMADDR_CID_ANY, port); in test_vsock() 2179 let sockaddr_host = VsockAddr::new(cid, port); in test_vsock()
|
/external/rust/crates/nix/ |
D | CHANGELOG.md | 157 - Fixed `SockaddrLike::from_raw` implementations for `VsockAddr` and 269 `SysControlAddr`, `LinkAddr`, and `VsockAddr`.
|