From 14ae107b5348b5aca8fb94341cc6c9c5a90c4922 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sun, 21 Jan 2018 13:03:15 +0300 Subject: [PATCH] =?UTF-8?q?Handle=20only=20IP=20IDs=20in=20[0x0;=200xF]=20?= =?UTF-8?q?(or=E2=86=92and)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goodbyedpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goodbyedpi.c b/goodbyedpi.c index 994745e..f99cb69 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -37,7 +37,7 @@ #define FILTER_STRING_TEMPLATE "(ip and tcp and " \ "(inbound and ((" \ - "((ip.Id <= 0xF or ip.Id >= 0x0) and tcp.SrcPort == 80 and tcp.Ack) or " \ + "((ip.Id <= 0xF and ip.Id >= 0x0) and tcp.SrcPort == 80 and tcp.Ack) or " \ "((tcp.SrcPort == 80 or tcp.SrcPort == 443) and tcp.Ack and tcp.Syn)" \ ") and " DIVERT_NO_LOCALNETS_SRC ") or " \ "(outbound and " \ @@ -45,7 +45,7 @@ DIVERT_NO_LOCALNETS_DST ")" \ "))" #define FILTER_STRING_PASSIVE "inbound and ip and tcp and " \ - "(ip.Id <= 0xF or ip.Id >= 0x0) and " \ + "(ip.Id <= 0xF and ip.Id >= 0x0) and " \ "(tcp.SrcPort == 443 or tcp.SrcPort == 80) and tcp.Rst and " \ DIVERT_NO_LOCALNETS_SRC