diff --git a/nfq/WinDivert.dll b/nfq/WinDivert.dll new file mode 100644 index 0000000..50ca874 Binary files /dev/null and b/nfq/WinDivert.dll differ diff --git a/nfq/WinDivert64.sys b/nfq/WinDivert64.sys new file mode 100644 index 0000000..218ccaf Binary files /dev/null and b/nfq/WinDivert64.sys differ diff --git a/nfq/helpers.c b/nfq/helpers.c index 51188de..b0670b8 100644 --- a/nfq/helpers.c +++ b/nfq/helpers.c @@ -391,7 +391,7 @@ void fill_random_az09(uint8_t *p,size_t sz) } } -void disable_console_io_buffering(void) +void set_console_io_buffering(void) { setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0); diff --git a/nfq/helpers.h b/nfq/helpers.h index 04ef521..f6d7a99 100644 --- a/nfq/helpers.h +++ b/nfq/helpers.h @@ -92,7 +92,7 @@ void fill_random_bytes(uint8_t *p,size_t sz); void fill_random_az(uint8_t *p,size_t sz); void fill_random_az09(uint8_t *p,size_t sz); -void disable_console_io_buffering(void); +void set_console_io_buffering(void); bool set_env_exedir(const char *argv0); diff --git a/nfq/nfqws.c b/nfq/nfqws.c index cd2e359..bd6e8b9 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -1414,7 +1414,7 @@ void check_dp(const struct desync_profile *dp) int main(int argc, char **argv) { - disable_console_io_buffering(); + set_console_io_buffering(); set_env_exedir(argv[0]); #ifdef __CYGWIN__ diff --git a/tpws/helpers.c b/tpws/helpers.c index 710b81a..47e8f2b 100644 --- a/tpws/helpers.c +++ b/tpws/helpers.c @@ -383,7 +383,7 @@ bool pf_is_empty(const port_filter *pf) return !pf->neg && !pf->from && !pf->to; } -void disable_console_io_buffering(void) +void set_console_io_buffering(void) { setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0); diff --git a/tpws/helpers.h b/tpws/helpers.h index 4b36662..3c9c153 100644 --- a/tpws/helpers.h +++ b/tpws/helpers.h @@ -82,7 +82,7 @@ bool pf_in_range(uint16_t port, const port_filter *pf); bool pf_parse(const char *s, port_filter *pf); bool pf_is_empty(const port_filter *pf); -void disable_console_io_buffering(void); +void set_console_io_buffering(void); bool set_env_exedir(const char *argv0); #ifndef IN_LOOPBACK diff --git a/tpws/tpws.c b/tpws/tpws.c index 205dcb9..605ed66 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -1707,7 +1707,7 @@ int main(int argc, char *argv[]) struct salisten_s list[MAX_BINDS]; char ip_port[48]; - disable_console_io_buffering(); + set_console_io_buffering(); set_env_exedir(argv[0]); srand(time(NULL)); mask_from_preflen6_prepare();