Expand description
Network commands (ping, ifconfig)
Re-exportsยง
use crate::shell::ShellError;๐use crate::shell_println;๐use crate::vfs;๐use crate::vfs::OpenFlags;๐use alloc::string::String;๐pub use ifconfig::cmd_ifconfig;pub use netcmd::cmd_net;pub use nslookup::cmd_nslookup;pub use ping_userspace::cmd_ping;use strat9_abi::ip::is_ipv4_literal_candidate;๐use strat9_abi::ip::parse_ipv4_literal;๐pub use telnet::cmd_telnet;
Modulesยง
- ifconfig ๐
- netcmd ๐
- nslookup ๐
- ping_
userspace ๐ - telnet ๐
Functionsยง
- cmd_
ifconfig_ ๐impl - Performs the cmd ifconfig operation.
- cmd_
net_ ๐impl - Performs the cmd net operation.
- cmd_
ping_ ๐spawn_ impl - Performs the cmd ping spawn operation (launches /initfs/ping with args).
- 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
msmilliseconds, yielding to other tasks. Scheduler ticks are 10ms each. - spawn_
elf_ ๐with_ args - Spawn a userspace ELF binary from
/initfs/<name>(or the legacy/initfs/bin/<name>) with the given shell arguments asargv[1..]. Returns immediately after scheduling. - write_
path ๐ - Writes path.