--- a/src/Common/Flow.cc
+++ b/src/Common/Flow.cc
@@ -1,17 +1,4 @@
-//
// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with this program. If not, see http://www.gnu.org/licenses/.
-//
#include "Flow.h"
@@ -227,6 +214,14 @@
return os.str();
}
+bool Flow::compare(const Flow& other) const {
+ return (srcApni == other.srcApni && dstApni == other.dstApni
+ && srcPortId == other.srcPortId && dstPortId == other.dstPortId
+ && srcAddr == other.srcAddr && dstAddr == other.dstAddr
+ && conId == other.conId
+ );
+}
+
void Flow::swapApni() {
APNamingInfo tmpapni = srcApni;
srcApni = dstApni;