mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Add keepidle tcp option
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
547c92d2ff
commit
72cb160539
@ -15,7 +15,7 @@ pub fn sys_getsockopt(
|
||||
optlen_addr: Vaddr,
|
||||
ctx: &Context,
|
||||
) -> Result<SyscallReturn> {
|
||||
let level = CSocketOptionLevel::try_from(level)?;
|
||||
let level = CSocketOptionLevel::try_from(level).map_err(|_| Errno::EOPNOTSUPP)?;
|
||||
if optval == 0 || optlen_addr == 0 {
|
||||
return_errno_with_message!(Errno::EINVAL, "optval or optlen_addr is null pointer");
|
||||
}
|
||||
|
Reference in New Issue
Block a user