Skip to main content

Module net

Module net 

Source
Expand description

Network commands (ping, ifconfig)

Modulesยง

ifconfig ๐Ÿ”’
netcmd ๐Ÿ”’
nslookup ๐Ÿ”’
ping_userspace ๐Ÿ”’
telnet ๐Ÿ”’

Functionsยง

cmd_ifconfig
Ifconfig command entrypoint.
cmd_ifconfig_impl ๐Ÿ”’
Performs the cmd ifconfig operation.
cmd_net
Net command entrypoint.
cmd_net_impl ๐Ÿ”’
Performs the cmd net operation.
cmd_nslookup
Minimal DNS lookup command.
cmd_ping
Userspace ping entrypoint: launches /initfs/bin/ping with the given args.
cmd_ping_spawn_impl ๐Ÿ”’
Performs the cmd ping spawn operation (launches /initfs/bin/ping with args).
cmd_telnet
Open a TCP connection and send/receive data interactively.
read_elf ๐Ÿ”’
Read an ELF binary from a VFS path into a Vec. Shared helper used by ping and other commands that spawn userspace binaries.
shell_sleep_ms ๐Ÿ”’
Busy-wait for approximately ms milliseconds, yielding to other tasks. Scheduler ticks are 10ms each.
spawn_elf_with_args ๐Ÿ”’
Spawn a userspace ELF binary from /initfs/bin/<name> with the given shell arguments as argv[1..]. Returns immediately after scheduling.
write_path ๐Ÿ”’
Writes path.