winws: handle signals when busy, pass impostor and loopback

This commit is contained in:
bol-van
2024-05-11 16:48:51 +03:00
parent 23f2de8014
commit 4febb74b0d
4 changed files with 12 additions and 8 deletions

View File

@@ -1037,6 +1037,7 @@ static bool windivert_recv_filter(HANDLE hFilter, uint8_t *packet, size_t *len,
errno=EINTR;
return false;
}
usleep(0);
if (WinDivertRecvEx(hFilter, packet, *len, &recv_len, 0, wa, NULL, &ovl))
{
*len = recv_len;