From fa0611260594c796f9ff134fa6038400bb411577 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:35:10 +0800 Subject: [PATCH] update 2023-12-03 23:35:10 --- UA2F/src/handler.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/UA2F/src/handler.c b/UA2F/src/handler.c index 0093d1bde..182a464e8 100644 --- a/UA2F/src/handler.c +++ b/UA2F/src/handler.c @@ -255,10 +255,13 @@ void handle_packet(const struct nf_queue* queue,const struct nf_packet* pkt) { goto end; } - if (!is_http_protocol(tcp_payload, tcp_payload_len)) { - send_verdict(queue, pkt, get_next_mark(pkt, false), NULL); - goto end; - } +// FIXME: can lead to false positive, +// should also get CTA_COUNTERS_ORIG to check if this packet is a initial tcp packet + +// if (!is_http_protocol(tcp_payload, tcp_payload_len)) { +// send_verdict(queue, pkt, get_next_mark(pkt, false), NULL); +// goto end; +// } count_http_packet(); const void* search_start = tcp_payload;