diff --git a/.gitignore b/.gitignore index 6ea66606..d323b64d 100644 --- a/.gitignore +++ b/.gitignore @@ -43,12 +43,9 @@ gen ### C template # Prerequisites -*.d # Object files -*.o *.ko -*.obj *.elf # Linker output @@ -56,15 +53,6 @@ gen *.map *.exp -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo # Shared objects (inc. Windows DLLs) *.so.* @@ -93,3 +81,5 @@ dkms.conf # Project exclude paths /cmake-build-*/ +test/ + diff --git a/Makefile b/Makefile index 211da981..7add1925 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=UA2F PKG_VERSION:=3.7 -PKG_RELEASE:=12 +PKG_RELEASE:=13 PKG_LICENSE:=GPL-3.0-only PKG_LICENSE_FILE:=LICENSE diff --git a/src/ua2f.c b/src/ua2f.c index 10e663ba..eda3e8c0 100644 --- a/src/ua2f.c +++ b/src/ua2f.c @@ -39,7 +39,7 @@ static long long UAcount = 0; static long long tcpcount = 0; static long long UAmark = 0; static long long noUAmark = 0; -static long long oldhttpcount = 4; +static long long httpcount = 4; static time_t start_t, current_t; @@ -338,8 +338,8 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) { debugflag++; //flag6 / 10 - if (UAcount / oldhttpcount == 2 || UAcount - oldhttpcount >= 8192) { - oldhttpcount = UAcount; + if (UAcount / httpcount == 2 || UAcount - httpcount >= 8192) { + httpcount = UAcount; current_t = time(NULL); syslog(LOG_INFO, "UA2F has handled %lld ua http, %lld tcp. Set %lld mark and %lld noUA mark in %s",