tpws: support 'n' prefix in tamper-start and tamper-cutoff

This commit is contained in:
bol-van
2024-03-09 14:26:07 +03:00
parent 3f9f1c36b8
commit cffcfe71da
4 changed files with 49 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <stdbool.h>
#include <inttypes.h>
#include <sys/queue.h>
#include <time.h>
#include "tamper.h"
@@ -67,7 +68,7 @@ struct tproxy_conn
bool bFlowIn,bFlowOut, bFlowInPrev,bFlowOutPrev, bPrevRdhup;
// total read,write
size_t trd,twr;
uint64_t trd,twr, tnrd;
// number of epoll_wait events
unsigned int event_count;