udpate the fpath return value to reflect the new format

This commit is contained in:
Benton60
2026-03-18 21:11:26 -04:00
parent 0ad36bf5b4
commit 87bda3ec32
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -252,7 +252,7 @@ impl<'a> SchemeSocket for IcmpSocket<'a> {
if let SchemeFile::Socket(ref socket_file) = *file {
match socket_file.data.socket_type {
IcmpSocketType::Echo => {
let path = format!("icmp:echo/{}", socket_file.data.ip);
let path = format!("/scheme/icmp/echo/{}", socket_file.data.ip);
let path = path.as_bytes();
let mut i = 0;
@@ -264,7 +264,7 @@ impl<'a> SchemeSocket for IcmpSocket<'a> {
Ok(i)
}
IcmpSocketType::Udp => {
let path = format!("icmp:udp/{}", socket_file.data.ip);
let path = format!("/scheme/icmp/udp/{}", socket_file.data.ip);
let path = path.as_bytes();
let mut i = 0;
+1 -1
View File
@@ -137,7 +137,7 @@ impl<'a> SchemeSocket for RawSocket<'a> {
}
fn fpath(&self, _file: &SchemeFile<Self>, buf: &mut [u8]) -> SyscallResult<usize> {
let path = format!("ip:{}", self.ip_protocol());
let path = format!("/scheme/ip/{}", self.ip_protocol());
let path = path.as_bytes();
let mut i = 0;