mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 15:15:07 +00:00
UserspaceEmulator: Handle SO_BINDTODEVICE in setsockopt
This commit is contained in:
parent
290e7957b7
commit
57f0f8c9b7
1 changed files with 7 additions and 0 deletions
|
@ -531,6 +531,13 @@ int Emulator::virt$setsockopt(FlatPtr params_addr)
|
|||
return rc;
|
||||
}
|
||||
|
||||
if (params.option == SO_BINDTODEVICE) {
|
||||
auto ifname = mmu().copy_buffer_from_vm((FlatPtr)params.value, params.value_size);
|
||||
params.value = ifname.data();
|
||||
params.value_size = ifname.size();
|
||||
return syscall(SC_setsockopt, ¶ms);
|
||||
}
|
||||
|
||||
TODO();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue