Skip to content

Commit

Permalink
Print message of HTTP fragmentation > 2 incompatibility.
Browse files Browse the repository at this point in the history
We can't reliably distinguish HTTP data from other data on port 80 when fragmentation is used.
HTTP method code has a special case which tries to find HTTP method when fragmentation = 1 or 2 is used,
but not for other values.
  • Loading branch information
ValdikSS committed Aug 28, 2017
1 parent 4c13435 commit feb03c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ int main(int argc, char *argv[]) {
(do_fragment_https ? https_fragment_size : 0),
do_host, do_host_removespace, do_additional_space);

if (do_fragment_http && http_fragment_size > 2) {
printf("WARNING: HTTP fragmentation values > 2 are not fully compatible "
"with other options. Please use values <= 2 or disable HTTP fragmentation "
"completely.\n");
}

printf("\nOpening filter\n");
filter_num = 0;

Expand Down

0 comments on commit feb03c7

Please sign in to comment.