added readme; added special case camouflaging
This commit is contained in:
parent
5fb3f5c228
commit
235addc585
9 changed files with 290 additions and 59 deletions
|
@ -22,10 +22,10 @@ bool CamoPattern::isInitialized = false;
|
|||
CamoLevel CamoPattern::camoLevel;
|
||||
uint32_t CamoPattern::camoWord;
|
||||
CamoRelayRule CamoPattern::relayRule;
|
||||
std::array<std::array<uint8_t, BYTES_IN_WORD>, PATTERN_COUNT> CamoPattern::camoValues;
|
||||
std::unordered_map<std::array<uint8_t, BYTES_IN_WORD>, size_t> CamoPattern::camoIndices;
|
||||
CamoPatternArray CamoPattern::camoValues;
|
||||
CamoIndexMap CamoPattern::camoIndices;
|
||||
std::mutex CamoPattern::camoMutex;
|
||||
std::unordered_map<Address, CamoLevel> CamoPattern::knownHosts;
|
||||
KnownHostsMap CamoPattern::knownHosts;
|
||||
|
||||
|
||||
// Implementation of getCamoLevel
|
||||
|
@ -138,7 +138,7 @@ bool CamoPattern::isCamoRequired(const Address host, const RuntimeEnvironment *
|
|||
|
||||
|
||||
// Implementation of init
|
||||
void CamoPattern::init(CamoLevel level, uint32_t word, std::unordered_map<Address, CamoLevel> hosts, CamoRelayRule rule)
|
||||
void CamoPattern::init(CamoLevel level, uint32_t word, KnownHostsMap hosts, CamoRelayRule rule)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(camoMutex);
|
||||
if (!isInitialized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue