mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 08:59:26 +08:00
update 2023-12-03 23:35:10
This commit is contained in:
parent
0722c4ecb6
commit
fa06112605
@ -255,10 +255,13 @@ void handle_packet(const struct nf_queue* queue,const struct nf_packet* pkt) {
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_http_protocol(tcp_payload, tcp_payload_len)) {
|
// FIXME: can lead to false positive,
|
||||||
send_verdict(queue, pkt, get_next_mark(pkt, false), NULL);
|
// should also get CTA_COUNTERS_ORIG to check if this packet is a initial tcp packet
|
||||||
goto end;
|
|
||||||
}
|
// if (!is_http_protocol(tcp_payload, tcp_payload_len)) {
|
||||||
|
// send_verdict(queue, pkt, get_next_mark(pkt, false), NULL);
|
||||||
|
// goto end;
|
||||||
|
// }
|
||||||
count_http_packet();
|
count_http_packet();
|
||||||
|
|
||||||
const void* search_start = tcp_payload;
|
const void* search_start = tcp_payload;
|
||||||
|
Loading…
Reference in New Issue
Block a user