Lines Matching defs:ip
48 void CPacketTracking::AddTrackedOutPacket(uint32_t ip, uint8_t opcode)
56 TrackPackets_Struct track = { ip, now, opcode };
89 bool CPacketTracking::IsOnOutTrackList(uint32_t ip, uint8_t opcode, bool dontRemove)
98 if (it->ip == ip && it->opcode == opcode && now - it->inserted < SEC2MS(180)) {
108 bool CPacketTracking::InTrackListIsAllowedPacket(uint32_t ip, uint8_t opcode, bool /*bValidSenderkey*/)
177 TrackedPacketInMap::iterator it2 = m_mapTrackPacketsIn.find(ip);
181 trackEntry->m_ip = ip;
182 m_mapTrackPacketsIn[ip] = trackEntry;
206 if (CKademlia::IsRunningInLANMode() && ::IsLanIP(wxUINT32_SWAP_ALWAYS(ip))) {
214 AddDebugLogLineN(logKadPacketTracking, CFormat(wxT("Massive request flood detected for opcode 0x%X (0x%X) from IP %s - Banning IP")) % opcode % dbgOrgOpcode % KadIPToString(ip));
215 theApp->clientlist->AddBannedClient(wxUINT32_SWAP_ALWAYS(ip));
221 AddDebugLogLineN(logKadPacketTracking, CFormat(wxT("Request flood detected for opcode 0x%X (0x%X) from IP %s - Dropping packets with this opcode")) % opcode % dbgOrgOpcode % KadIPToString(ip));
258 void CPacketTracking::AddLegacyChallenge(const CUInt128& contactID, const CUInt128& challengeID, uint32_t ip, uint8_t opcode)
261 TrackChallenge_Struct sTrack = { ip, now, opcode, contactID, challengeID };
265 AddDebugLogLineN(logKadPacketTracking, wxT("Challenge timed out, client not verified - ") + KadIPToString(listChallengeRequests.back().ip));
273 bool CPacketTracking::IsLegacyChallenge(const CUInt128& challengeID, uint32_t ip, uint8_t opcode, CUInt128& contactID)
279 if (it2->ip == ip && it2->opcode == opcode && now - it2->inserted < SEC2MS(180)) {
292 AddDebugLogLineN(logKadPacketTracking, wxT("Wrong challenge answer received, client not verified (") + KadIPToString(ip) + wxT(")"));
298 bool CPacketTracking::HasActiveLegacyChallenge(uint32_t ip) const
302 if (it->ip == ip && now - it->inserted <= SEC2MS(180)) {