MCPcopy Create free account
hub / github.com/PLSysSec/wave / trace_socket

Function trace_socket

src/os/mod.rs:652–655  ·  view source on GitHub ↗
(ctx: &VmCtx, domain: i32, ty: i32, protocol: i32)

Source from the content-addressed store, hash-verified

650#[ensures(trace_safe(trace, ctx))]
651#[ensures(effects!(old(trace), trace, effect!(SockCreation, d, t) if d == domain as usize && t == ty as usize ))]
652pub fn trace_socket(ctx: &VmCtx, domain: i32, ty: i32, protocol: i32) -> RuntimeResult<usize> {
653 let r = os_socket(domain, ty, protocol);
654 RuntimeError::from_syscall_ret(r)
655}
656
657#[with_ghost_var(trace: &mut Trace)]
658#[requires(addr_in_netlist(&ctx.netlist, addr.sin_addr.s_addr, addr.sin_port as u32))]

Callers 1

wasi_socketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected