From 72feb2ea9108d2c6111a7ab7daa9f053a0b95605 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 6 Dec 2010 16:27:26 +0200 Subject: [PATCH] =?utf8?q?=D0=94=D0=BB=D1=8F=20=D1=81=D1=82=D1=80=D1=83?= =?utf8?q?=D0=BA=D1=82=D1=83=D1=80=D1=8B=20IP=5FDIR=5FPAIR=20=D0=B4=D0=BE?= =?utf8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BE=D0=BF=D0=B5=D1=80?= =?utf8?q?=D0=B0=D1=82=D0=BE=D1=80=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D1=8F=20(=D1=82=D0=BE=D1=87=D0=BD=D0=B5=D0=B5=20?= =?utf8?q?=D0=BD=D0=B5=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D1=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/user_stat.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/user_stat.h b/include/user_stat.h index 126c20f4..fd0e79a0 100644 --- a/include/user_stat.h +++ b/include/user_stat.h @@ -74,6 +74,22 @@ struct IP_DIR_PAIR return false; } //------------------------ + bool operator!=(const IP_DIR_PAIR & rvalue) const + { + if (ip != rvalue.ip) + return true; + + #ifdef TRAFF_STAT_WITH_PORTS + if (port != rvalue.port) + return true; + #endif + + if (dir != rvalue.dir) + return true; + + return false; + } + //------------------------ uint32_t ip; int dir; #ifdef TRAFF_STAT_WITH_PORTS -- 2.43.2