winws: fix error messages and error code in windivert init

This commit is contained in:
bol-van
2024-05-01 19:02:28 +03:00
parent da1226ceee
commit a145fe73fe
5 changed files with 12 additions and 7 deletions

View File

@@ -149,6 +149,8 @@ uint8_t tcp_find_scale_factor(const struct tcphdr *tcp);
bool tcp_has_fastopen(const struct tcphdr *tcp);
#ifdef __CYGWIN__
extern DWORD w_win32_error;
bool windivert_init(const char *filter);
bool windivert_recv(uint8_t *packet, size_t *len, WINDIVERT_ADDRESS *wa);
bool windivert_send(const uint8_t *packet, size_t len, const WINDIVERT_ADDRESS *wa);