Skip to main content

Module net

Module net 

Source
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 ms milliseconds, 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 as argv[1..]. Returns immediately after scheduling.
write_path ๐Ÿ”’
Writes path.