mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-11-22 01:55:19 +01:00
Fix signed/unsigned integer comparison warning for HTTP fragmentation
This commit is contained in:
parent
fab9662ac9
commit
c9cd3ac8c7
10
goodbyedpi.c
10
goodbyedpi.c
@ -38,13 +38,13 @@
|
|||||||
|
|
||||||
#define SET_HTTP_FRAGMENT_SIZE_OPTION(fragment_size) do { \
|
#define SET_HTTP_FRAGMENT_SIZE_OPTION(fragment_size) do { \
|
||||||
if (!http_fragment_size) { \
|
if (!http_fragment_size) { \
|
||||||
http_fragment_size = fragment_size; \
|
if (fragment_size <= 0 || fragment_size > 65535) { \
|
||||||
if (http_fragment_size <= 0 || http_fragment_size > 65535) { \
|
|
||||||
printf(fragment_size_message); \
|
printf(fragment_size_message); \
|
||||||
exit(EXIT_FAILURE); \
|
exit(EXIT_FAILURE); \
|
||||||
} \
|
} \
|
||||||
|
http_fragment_size = fragment_size; \
|
||||||
} \
|
} \
|
||||||
else if (http_fragment_size != fragment_size) { \
|
else if (http_fragment_size != (unsigned int)fragment_size) { \
|
||||||
printf( \
|
printf( \
|
||||||
"WARNING: HTTP fragment size is already set to %d, not changing.\n", \
|
"WARNING: HTTP fragment size is already set to %d, not changing.\n", \
|
||||||
http_fragment_size \
|
http_fragment_size \
|
||||||
@ -266,8 +266,8 @@ int main(int argc, char *argv[]) {
|
|||||||
do_http_allports = 0,
|
do_http_allports = 0,
|
||||||
do_host_mixedcase = 0, do_dns_redirect = 0,
|
do_host_mixedcase = 0, do_dns_redirect = 0,
|
||||||
do_dns_verb = 0, do_blacklist = 0;
|
do_dns_verb = 0, do_blacklist = 0;
|
||||||
int http_fragment_size = 2;
|
unsigned int http_fragment_size = 2;
|
||||||
int https_fragment_size = 2;
|
unsigned int https_fragment_size = 2;
|
||||||
uint32_t dns_addr = 0;
|
uint32_t dns_addr = 0;
|
||||||
uint16_t dns_port = htons(53);
|
uint16_t dns_port = htons(53);
|
||||||
char *host_addr, *useragent_addr, *method_addr;
|
char *host_addr, *useragent_addr, *method_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user