Some file format cleanup.

This commit is contained in:
Adam Ierymenko 2013-09-17 15:46:56 -04:00
parent 0133da1dcd
commit b2b24ca41b
6 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,7 @@
#include <string>
#include <vector>
#include <map>
#include "Identity.hpp"
#include "InetAddress.hpp"

View File

@ -31,6 +31,7 @@
#include <string>
#include <map>
#include <stdexcept>
#include "Constants.hpp"
namespace ZeroTier {

View File

@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <string>
#include "Constants.hpp"

View File

@ -178,7 +178,7 @@ public:
throw()
{
for(unsigned int i=0;i<ZT_MULTICAST_DEDUP_HISTORY_LENGTH;++i) {
if ((_multicastHistory[i][0] == crc)&&((now - _multicastHistory[i][1]) < ZT_MULTICAST_DEDUP_HISTORY_EXPIRE))
if ((_multicastHistory[i][0] == crc)&&((now - _multicastHistory[i][1]) <= ZT_MULTICAST_DEDUP_HISTORY_EXPIRE))
return true;
}
return false;

View File

@ -30,6 +30,7 @@
#include <stdlib.h>
#include <math.h>
#include "Constants.hpp"
#include "RuntimeEnvironment.hpp"
#include "NodeConfig.hpp"
#include "Network.hpp"

View File

@ -33,10 +33,10 @@
#include <vector>
#include <list>
#include "Constants.hpp"
#include "Mutex.hpp"
#include "MAC.hpp"
#include "NonCopyable.hpp"
#include "Constants.hpp"
#include "Packet.hpp"
#include "Utils.hpp"
#include "InetAddress.hpp"