From feb03c74c88815826b91a38e04bd2577e5f946ee Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Mon, 28 Aug 2017 11:46:59 +0300 Subject: [PATCH] Print message of HTTP fragmentation > 2 incompatibility. 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. --- goodbyedpi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/goodbyedpi.c b/goodbyedpi.c index b4292b0..e907c86 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -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;