diff options
author | Nico Weber <thakis@chromium.org> | 2020-09-15 15:43:23 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-15 23:29:51 +0200 |
commit | f0018aca1df36a04e8364dcd39e3013cda54f850 (patch) | |
tree | 5759f359872de9834f03d3675607a56620515429 /DevTools/UserspaceEmulator/Emulator.h | |
parent | e2f32b8f9d4ce0ce8f92d4817273fb9b32cd8ccd (diff) | |
download | serenity-f0018aca1df36a04e8364dcd39e3013cda54f850.zip |
UserspaceEmulator: Intercept sendto()
With this, `ue /bin/ntpquery` can be used to test sendto() and
recvfrom() in ue. (It eventually hits an unimplemented FILD_RM64,
but not before doing emulated network i/o and printing response
details.)
Diffstat (limited to 'DevTools/UserspaceEmulator/Emulator.h')
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.h b/DevTools/UserspaceEmulator/Emulator.h index f92a996809..b914ad9513 100644 --- a/DevTools/UserspaceEmulator/Emulator.h +++ b/DevTools/UserspaceEmulator/Emulator.h @@ -132,6 +132,7 @@ private: int virt$accept(int sockfd, FlatPtr address, FlatPtr address_length); int virt$bind(int sockfd, FlatPtr address, socklen_t address_length); int virt$recvfrom(FlatPtr); + int virt$sendto(FlatPtr); int virt$connect(int sockfd, FlatPtr address, socklen_t address_size); void virt$exit(int); ssize_t virt$getrandom(FlatPtr buffer, size_t buffer_size, unsigned int flags); |