Skip to content

Conversation

robinyuan1002
Copy link
Collaborator

No description provided.

@Yaxuan-w Yaxuan-w changed the title Network-related syscall typemap [Refactor] Network-related syscall typemap Apr 16, 2025
Copy link
Contributor

@rennergade rennergade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good except for the function name

@Yaxuan-w Yaxuan-w changed the base branch from typemap to threei-integration September 5, 2025 21:11
}

/// Converts a user-space socket address into a host-compatible `sockaddr` used for syscalls.
pub fn sc_convert_host_sockaddr(arg: *mut u8, arg_cageid: u64, cageid: u64) -> (*mut sockaddr, u32) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the arg should be u64

}

/// Copies a socket address structure from the kernel into user space based on the given address family.
pub fn sc_convert_copy_out_sockaddr(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's each argument mean?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to convert to Lind-defined sockaddr instead of libc::SockAddr, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants