Skip to main content

Crate ping

Crate ping 

Source
Expand description

ping – ICMP echo utility for strat9-os

Sends ICMP echo requests by writing to /net/ping/<target_ip> and reads replies from the same scheme path. The actual ICMP socket is driven by the strate-net silo via smoltcp; this tool is a thin userspace wrapper.

Usage: ping [-c count]

All I/O is done through Plan 9–style schemes – no BSD sockets.

Structs§

BufWriter 🔒
BumpAllocator
PingArgs 🔒
PingReply 🔒
PingRequest 🔒
ICMP echo request/reply payload passed through the /net/ping/<ip> scheme.
__FreeNode 🔒

Constants§

__MIN_ALIGN 🔒
__MIN_BLOCK_SIZE 🔒

Statics§

GLOBAL_ALLOCATOR 🔒
__ALLOC_LOCK 🔒
__FREE_LIST_HEAD 🔒
__HEAP 🔒
__HEAP_OFFSET 🔒

Functions§

__align_up 🔒
Implements align up.
__alloc_size 🔒
Implements alloc size.
__lock_alloc 🔒
Implements lock alloc.
__unlock_alloc 🔒
Implements unlock alloc.
_start
Implements start.
alloc_error 🔒
Implements alloc error.
clock_ns 🔒
Implements clock ns.
log 🔒
Implements log.
log_u32 🔒
Implements log u32.
panic 🔒
Implements panic.
parse_args 🔒
Parses args.
parse_ipv4_literal 🔒
Parses ipv4 literal.
resolve_target 🔒
scheme_read 🔒
Read a scheme file, return bytes read.
scheme_write 🔒
Write to a scheme file, return bytes written.
sleep_ms 🔒
Implements sleep ms.
u32_to_str 🔒
Implements u32 to str.