1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

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.)
This commit is contained in:
Nico Weber 2020-09-15 15:43:23 -04:00 committed by Andreas Kling
parent e2f32b8f9d
commit f0018aca1d
2 changed files with 17 additions and 0 deletions

View file

@ -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);