AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldSession::DosProtection Class Reference

#include "WorldSession.h"

Public Member Functions

 DosProtection (WorldSession *s)
 
bool EvaluateOpcode (WorldPacket &p, time_t time) const
 

Protected Types

enum  Policy {
  POLICY_LOG ,
  POLICY_KICK ,
  POLICY_BAN
}
 

Protected Member Functions

uint32 GetMaxPacketCounterAllowed (uint16 opcode) const
 

Protected Attributes

WorldSessionSession
 

Private Types

typedef std::unordered_map< uint16, PacketCounterPacketThrottlingMap
 

Private Member Functions

 DosProtection (DosProtection const &right)=delete
 
DosProtectionoperator= (DosProtection const &right)=delete
 

Private Attributes

Policy _policy
 
PacketThrottlingMap _PacketThrottlingMap
 

Friends

class World
 

Detailed Description

Member Typedef Documentation

◆ PacketThrottlingMap

Member Enumeration Documentation

◆ Policy

Enumerator
POLICY_LOG 
POLICY_KICK 
POLICY_BAN 
1101 {
1102 POLICY_LOG,
1105 };
@ POLICY_KICK
Definition: WorldSession.h:1103
@ POLICY_BAN
Definition: WorldSession.h:1104
@ POLICY_LOG
Definition: WorldSession.h:1102

Constructor & Destructor Documentation

◆ DosProtection() [1/2]

WorldSession::DosProtection::DosProtection ( WorldSession s)
1608 :
1609 Session(s), _policy((Policy)sWorld->getIntConfig(CONFIG_PACKET_SPOOF_POLICY)) { }
@ CONFIG_PACKET_SPOOF_POLICY
Definition: IWorld.h:374
#define sWorld
Definition: World.h:444
Policy _policy
Definition: WorldSession.h:1112
WorldSession * Session
Definition: WorldSession.h:1109
Policy
Definition: WorldSession.h:1101

◆ DosProtection() [2/2]

WorldSession::DosProtection::DosProtection ( DosProtection const &  right)
privatedelete

Member Function Documentation

◆ EvaluateOpcode()

bool WorldSession::DosProtection::EvaluateOpcode ( WorldPacket p,
time_t  time 
) const
1305{
1306 uint32 maxPacketCounterAllowed = GetMaxPacketCounterAllowed(p.GetOpcode());
1307
1308 // Return true if there no limit for the opcode
1309 if (!maxPacketCounterAllowed)
1310 return true;
1311
1312 PacketCounter& packetCounter = _PacketThrottlingMap[p.GetOpcode()];
1313 if (packetCounter.lastReceiveTime != time)
1314 {
1315 packetCounter.lastReceiveTime = time;
1316 packetCounter.amountCounter = 0;
1317 }
1318
1319 // Check if player is flooding some packets
1320 if (++packetCounter.amountCounter <= maxPacketCounterAllowed)
1321 return true;
1322
1323 LOG_WARN("network", "AntiDOS: Account {}, IP: {}, Ping: {}, Character: {}, flooding packet (opc: {} (0x{:X}), count: {})",
1325 opcodeTable[static_cast<OpcodeClient>(p.GetOpcode())]->Name, p.GetOpcode(), packetCounter.amountCounter);
1326
1327 switch (_policy)
1328 {
1329 case POLICY_LOG:
1330 return true;
1331 case POLICY_KICK:
1332 {
1333 LOG_INFO("network", "AntiDOS: Player {} kicked!", Session->GetPlayerName());
1335 return false;
1336 }
1337 case POLICY_BAN:
1338 {
1339 uint32 bm = sWorld->getIntConfig(CONFIG_PACKET_SPOOF_BANMODE);
1340 uint32 duration = sWorld->getIntConfig(CONFIG_PACKET_SPOOF_BANDURATION); // in seconds
1341 std::string nameOrIp = "";
1342 switch (bm)
1343 {
1344 case 0: // Ban account
1345 (void)AccountMgr::GetName(Session->GetAccountId(), nameOrIp);
1346 sBan->BanAccount(nameOrIp, std::to_string(duration), "DOS (Packet Flooding/Spoofing", "Server: AutoDOS");
1347 break;
1348 case 1: // Ban ip
1349 nameOrIp = Session->GetRemoteAddress();
1350 sBan->BanIP(nameOrIp, std::to_string(duration), "DOS (Packet Flooding/Spoofing", "Server: AutoDOS");
1351 break;
1352 }
1353
1354 LOG_INFO("network", "AntiDOS: Player automatically banned for {} seconds.", duration);
1355 return false;
1356 }
1357 default: // invalid policy
1358 return true;
1359 }
1360}
#define LOG_INFO(filterType__,...)
Definition: Log.h:164
#define LOG_WARN(filterType__,...)
Definition: Log.h:160
std::uint32_t uint32
Definition: Define.h:107
#define sBan
Definition: BanMgr.h:48
@ CONFIG_PACKET_SPOOF_BANDURATION
Definition: IWorld.h:376
@ CONFIG_PACKET_SPOOF_BANMODE
Definition: IWorld.h:375
Opcodes
List of Opcodes.
Definition: Opcodes.h:30
OpcodeTable opcodeTable
Definition: Opcodes.cpp:51
bool GetName(uint32 accountId, std::string &name)
Definition: AccountMgr.cpp:257
uint16 GetOpcode() const
Definition: WorldPacket.h:76
Definition: WorldSession.h:323
uint32 amountCounter
Definition: WorldSession.h:325
time_t lastReceiveTime
Definition: WorldSession.h:324
uint32 GetAccountId() const
Definition: WorldSession.h:361
uint32 GetLatency() const
Definition: WorldSession.h:502
std::string const & GetRemoteAddress()
Definition: WorldSession.h:371
void KickPlayer(bool setKicked=true)
Definition: WorldSession.h:400
std::string const & GetPlayerName() const
Definition: WorldSession.cpp:186
uint32 GetMaxPacketCounterAllowed(uint16 opcode) const
Definition: WorldSession.cpp:1362
PacketThrottlingMap _PacketThrottlingMap
Definition: WorldSession.h:1115

References _PacketThrottlingMap, _policy, PacketCounter::amountCounter, CONFIG_PACKET_SPOOF_BANDURATION, CONFIG_PACKET_SPOOF_BANMODE, WorldSession::GetAccountId(), WorldSession::GetLatency(), GetMaxPacketCounterAllowed(), AccountMgr::GetName(), WorldPacket::GetOpcode(), WorldSession::GetPlayerName(), WorldSession::GetRemoteAddress(), WorldSession::KickPlayer(), PacketCounter::lastReceiveTime, LOG_INFO, LOG_WARN, opcodeTable, POLICY_BAN, POLICY_KICK, POLICY_LOG, sBan, Session, and sWorld.

Referenced by WorldSession::Update().

◆ GetMaxPacketCounterAllowed()

uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed ( uint16  opcode) const
protected
1363{
1364 uint32 maxPacketCounterAllowed;
1365 switch (opcode)
1366 {
1367 // CPU usage sending 2000 packets/second on a 3.70 GHz 4 cores on Win x64
1368 // [% CPU mysqld] [%CPU worldserver RelWithDebInfo]
1369 case CMSG_PLAYER_LOGIN: // 0 0.5
1370 case CMSG_NAME_QUERY: // 0 1
1371 case CMSG_PET_NAME_QUERY: // 0 1
1372 case CMSG_NPC_TEXT_QUERY: // 0 1
1373 case CMSG_ATTACKSTOP: // 0 1
1374 case CMSG_QUERY_QUESTS_COMPLETED: // 0 1
1375 case CMSG_QUERY_TIME: // 0 1
1377 case CMSG_MOVE_TIME_SKIPPED: // 0 1
1378 case MSG_QUERY_NEXT_MAIL_TIME: // 0 1
1379 case CMSG_SET_SHEATHED: // 0 1
1380 case MSG_RAID_TARGET_UPDATE: // 0 1
1381 case CMSG_PLAYER_LOGOUT: // 0 1
1382 case CMSG_LOGOUT_REQUEST: // 0 1
1383 case CMSG_PET_RENAME: // 0 1
1384 case CMSG_QUESTGIVER_CANCEL: // 0 1
1386 case CMSG_COMPLETE_CINEMATIC: // 0 1
1387 case CMSG_BANKER_ACTIVATE: // 0 1
1388 case CMSG_BUY_BANK_SLOT: // 0 1
1389 case CMSG_OPT_OUT_OF_LOOT: // 0 1
1390 case CMSG_DUEL_ACCEPTED: // 0 1
1391 case CMSG_DUEL_CANCELLED: // 0 1
1392 case CMSG_CALENDAR_COMPLAIN: // 0 1
1393 case CMSG_QUEST_QUERY: // 0 1.5
1394 case CMSG_ITEM_QUERY_SINGLE: // 0 1.5
1395 case CMSG_ITEM_NAME_QUERY: // 0 1.5
1396 case CMSG_GAMEOBJECT_QUERY: // 0 1.5
1397 case CMSG_CREATURE_QUERY: // 0 1.5
1398 case CMSG_QUESTGIVER_STATUS_QUERY: // 0 1.5
1399 case CMSG_GUILD_QUERY: // 0 1.5
1400 case CMSG_ARENA_TEAM_QUERY: // 0 1.5
1401 case CMSG_TAXINODE_STATUS_QUERY: // 0 1.5
1402 case CMSG_TAXIQUERYAVAILABLENODES: // 0 1.5
1403 case CMSG_QUESTGIVER_QUERY_QUEST: // 0 1.5
1404 case CMSG_PAGE_TEXT_QUERY: // 0 1.5
1405 case MSG_QUERY_GUILD_BANK_TEXT: // 0 1.5
1406 case MSG_CORPSE_QUERY: // 0 1.5
1407 case MSG_MOVE_SET_FACING: // 0 1.5
1408 case CMSG_REQUEST_PARTY_MEMBER_STATS: // 0 1.5
1409 case CMSG_QUESTGIVER_COMPLETE_QUEST: // 0 1.5
1410 case CMSG_SET_ACTION_BUTTON: // 0 1.5
1411 case CMSG_RESET_INSTANCES: // 0 1.5
1412 case CMSG_HEARTH_AND_RESURRECT: // 0 1.5
1413 case CMSG_TOGGLE_PVP: // 0 1.5
1414 case CMSG_PET_ABANDON: // 0 1.5
1415 case CMSG_ACTIVATETAXIEXPRESS: // 0 1.5
1416 case CMSG_ACTIVATETAXI: // 0 1.5
1417 case CMSG_SELF_RES: // 0 1.5
1418 case CMSG_UNLEARN_SKILL: // 0 1.5
1419 case CMSG_EQUIPMENT_SET_SAVE: // 0 1.5
1420 case CMSG_DELETEEQUIPMENT_SET: // 0 1.5
1421 case CMSG_DISMISS_CRITTER: // 0 1.5
1422 case CMSG_REPOP_REQUEST: // 0 1.5
1423 case CMSG_GROUP_INVITE: // 0 1.5
1424 case CMSG_GROUP_DECLINE: // 0 1.5
1425 case CMSG_GROUP_ACCEPT: // 0 1.5
1426 case CMSG_GROUP_UNINVITE_GUID: // 0 1.5
1427 case CMSG_GROUP_UNINVITE: // 0 1.5
1428 case CMSG_GROUP_DISBAND: // 0 1.5
1429 case CMSG_BATTLEMASTER_JOIN_ARENA: // 0 1.5
1430 case CMSG_LEAVE_BATTLEFIELD: // 0 1.5
1431 case MSG_GUILD_BANK_LOG_QUERY: // 0 2
1432 case CMSG_LOGOUT_CANCEL: // 0 2
1433 case CMSG_REALM_SPLIT: // 0 2
1434 case CMSG_ALTER_APPEARANCE: // 0 2
1435 case CMSG_QUEST_CONFIRM_ACCEPT: // 0 2
1436 case MSG_GUILD_EVENT_LOG_QUERY: // 0 2.5
1439 case CMSG_BEGIN_TRADE: // 0 2.5
1440 case CMSG_INITIATE_TRADE: // 0 3
1441 case CMSG_MESSAGECHAT: // 0 3.5
1442 case CMSG_INSPECT: // 0 3.5
1443 case CMSG_AREA_SPIRIT_HEALER_QUERY: // not profiled
1444 case CMSG_STANDSTATECHANGE: // not profiled
1445 case MSG_RANDOM_ROLL: // not profiled
1446 case CMSG_TIME_SYNC_RESP: // not profiled
1447 case CMSG_TRAINER_BUY_SPELL: // not profiled
1448 case CMSG_FORCE_SWIM_SPEED_CHANGE_ACK: // not profiled
1449 case CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK: // not profiled
1450 case CMSG_FORCE_RUN_SPEED_CHANGE_ACK: // not profiled
1451 case CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK: // not profiled
1452 case CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK: // not profiled
1453 case CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK: // not profiled
1454 case CMSG_FORCE_WALK_SPEED_CHANGE_ACK: // not profiled
1455 case CMSG_FORCE_TURN_RATE_CHANGE_ACK: // not profiled
1456 case CMSG_FORCE_PITCH_RATE_CHANGE_ACK: // not profiled
1457 {
1458 // "0" is a magic number meaning there's no limit for the opcode.
1459 // All the opcodes above must cause little CPU usage and no sync/async database queries at all
1460 maxPacketCounterAllowed = 0;
1461 break;
1462 }
1463
1464 case CMSG_QUESTGIVER_ACCEPT_QUEST: // 0 4
1465 case CMSG_QUESTLOG_REMOVE_QUEST: // 0 4
1467 case CMSG_CONTACT_LIST: // 0 5
1468 case CMSG_LEARN_PREVIEW_TALENTS: // 0 6
1469 case CMSG_AUTOBANK_ITEM: // 0 6
1470 case CMSG_AUTOSTORE_BANK_ITEM: // 0 6
1471 case CMSG_WHO: // 0 7
1472 case CMSG_PLAYER_VEHICLE_ENTER: // 0 8
1473 case CMSG_LEARN_PREVIEW_TALENTS_PET: // not profiled
1474 case MSG_MOVE_HEARTBEAT:
1475 {
1476 maxPacketCounterAllowed = 200;
1477 break;
1478 }
1479
1480 case CMSG_GUILD_SET_PUBLIC_NOTE: // 1 2 1 async db query
1481 case CMSG_GUILD_SET_OFFICER_NOTE: // 1 2 1 async db query
1482 case CMSG_SET_CONTACT_NOTES: // 1 2.5 1 async db query
1483 case CMSG_CALENDAR_GET_CALENDAR: // 0 1.5 medium upload bandwidth usage
1484 case CMSG_GUILD_BANK_QUERY_TAB: // 0 3.5 medium upload bandwidth usage
1485 case CMSG_QUERY_INSPECT_ACHIEVEMENTS: // 0 13 high upload bandwidth usage
1486 case CMSG_GAMEOBJ_REPORT_USE: // not profiled
1487 case CMSG_GAMEOBJ_USE: // not profiled
1488 case MSG_PETITION_DECLINE: // not profiled
1489 {
1490 maxPacketCounterAllowed = 50;
1491 break;
1492 }
1493
1494 case CMSG_QUEST_POI_QUERY: // 0 25 very high upload bandwidth usage
1495 {
1496 maxPacketCounterAllowed = MAX_QUEST_LOG_SIZE;
1497 break;
1498 }
1499
1500 case CMSG_GM_REPORT_LAG: // 1 3 1 async db query
1501 case CMSG_SPELLCLICK: // not profiled
1502 case CMSG_REMOVE_GLYPH: // not profiled
1503 case CMSG_DISMISS_CONTROLLED_VEHICLE: // not profiled
1504 {
1505 maxPacketCounterAllowed = 20;
1506 break;
1507 }
1508
1509 case CMSG_PETITION_SIGN: // 9 4 2 sync 1 async db queries
1510 case CMSG_TURN_IN_PETITION: // 8 5.5 2 sync db query
1511 case CMSG_GROUP_CHANGE_SUB_GROUP: // 6 5 1 sync 1 async db queries
1512 case CMSG_PETITION_QUERY: // 4 3.5 1 sync db query
1513 case CMSG_CHAR_RACE_CHANGE: // 5 4 1 sync db query
1514 case CMSG_CHAR_CUSTOMIZE: // 5 5 1 sync db query
1515 case CMSG_CHAR_FACTION_CHANGE: // 5 5 1 sync db query
1516 case CMSG_CHAR_DELETE: // 4 4 1 sync db query
1517 case CMSG_DEL_FRIEND: // 7 5 1 async db query
1518 case CMSG_ADD_FRIEND: // 6 4 1 async db query
1519 case CMSG_CHAR_RENAME: // 5 3 1 async db query
1520 case CMSG_GMSURVEY_SUBMIT: // 2 3 1 async db query
1521 case CMSG_BUG: // 1 1 1 async db query
1522 case CMSG_GROUP_SET_LEADER: // 1 2 1 async db query
1523 case CMSG_GROUP_RAID_CONVERT: // 1 5 1 async db query
1524 case CMSG_GROUP_ASSISTANT_LEADER: // 1 2 1 async db query
1525 case CMSG_PETITION_BUY: // not profiled 1 sync 1 async db queries
1526 case CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE: // not profiled
1527 case CMSG_REQUEST_VEHICLE_PREV_SEAT: // not profiled
1528 case CMSG_REQUEST_VEHICLE_NEXT_SEAT: // not profiled
1529 case CMSG_REQUEST_VEHICLE_SWITCH_SEAT: // not profiled
1530 case CMSG_REQUEST_VEHICLE_EXIT: // not profiled
1531 case CMSG_CONTROLLER_EJECT_PASSENGER: // not profiled
1532 case CMSG_ITEM_REFUND: // not profiled
1533 case CMSG_SOCKET_GEMS: // not profiled
1534 case CMSG_WRAP_ITEM: // not profiled
1535 case CMSG_REPORT_PVP_AFK: // not profiled
1536 {
1537 maxPacketCounterAllowed = 10;
1538 break;
1539 }
1540
1541 case CMSG_CHAR_CREATE: // 7 5 3 async db queries
1542 case CMSG_CHAR_ENUM: // 22 3 2 async db queries
1543 case CMSG_GMTICKET_CREATE: // 1 25 1 async db query
1544 case CMSG_GMTICKET_UPDATETEXT: // 0 15 1 async db query
1545 case CMSG_GMTICKET_DELETETICKET: // 1 25 1 async db query
1546 case CMSG_GMRESPONSE_RESOLVE: // 1 25 1 async db query
1547 case CMSG_CALENDAR_ADD_EVENT: // 21 10 2 async db query
1548 case CMSG_CALENDAR_UPDATE_EVENT: // not profiled
1549 case CMSG_CALENDAR_REMOVE_EVENT: // not profiled
1550 case CMSG_CALENDAR_COPY_EVENT: // not profiled
1551 case CMSG_CALENDAR_EVENT_INVITE: // not profiled
1552 case CMSG_CALENDAR_EVENT_SIGNUP: // not profiled
1553 case CMSG_CALENDAR_EVENT_RSVP: // not profiled
1554 case CMSG_CALENDAR_EVENT_REMOVE_INVITE: // not profiled
1555 case CMSG_CALENDAR_EVENT_MODERATOR_STATUS: // not profiled
1556 case CMSG_ARENA_TEAM_INVITE: // not profiled
1557 case CMSG_ARENA_TEAM_ACCEPT: // not profiled
1558 case CMSG_ARENA_TEAM_DECLINE: // not profiled
1559 case CMSG_ARENA_TEAM_LEAVE: // not profiled
1560 case CMSG_ARENA_TEAM_DISBAND: // not profiled
1561 case CMSG_ARENA_TEAM_REMOVE: // not profiled
1562 case CMSG_ARENA_TEAM_LEADER: // not profiled
1563 case CMSG_LOOT_METHOD: // not profiled
1564 case CMSG_GUILD_INVITE: // not profiled
1565 case CMSG_GUILD_ACCEPT: // not profiled
1566 case CMSG_GUILD_DECLINE: // not profiled
1567 case CMSG_GUILD_LEAVE: // not profiled
1568 case CMSG_GUILD_DISBAND: // not profiled
1569 case CMSG_GUILD_LEADER: // not profiled
1570 case CMSG_GUILD_MOTD: // not profiled
1571 case CMSG_GUILD_RANK: // not profiled
1572 case CMSG_GUILD_ADD_RANK: // not profiled
1573 case CMSG_GUILD_DEL_RANK: // not profiled
1574 case CMSG_GUILD_INFO_TEXT: // not profiled
1575 case CMSG_GUILD_BANK_DEPOSIT_MONEY: // not profiled
1576 case CMSG_GUILD_BANK_WITHDRAW_MONEY: // not profiled
1577 case CMSG_GUILD_BANK_BUY_TAB: // not profiled
1578 case CMSG_GUILD_BANK_UPDATE_TAB: // not profiled
1579 case CMSG_SET_GUILD_BANK_TEXT: // not profiled
1580 case MSG_SAVE_GUILD_EMBLEM: // not profiled
1581 case MSG_PETITION_RENAME: // not profiled
1582 case MSG_TALENT_WIPE_CONFIRM: // not profiled
1583 case MSG_SET_DUNGEON_DIFFICULTY: // not profiled
1584 case MSG_SET_RAID_DIFFICULTY: // not profiled
1585 case MSG_PARTY_ASSIGNMENT: // not profiled
1586 case MSG_RAID_READY_CHECK: // not profiled
1587 {
1588 maxPacketCounterAllowed = 3;
1589 break;
1590 }
1591
1592 case CMSG_ITEM_REFUND_INFO: // not profiled
1593 {
1594 maxPacketCounterAllowed = PLAYER_SLOTS_COUNT;
1595 break;
1596 }
1597
1598 default:
1599 {
1600 maxPacketCounterAllowed = 100;
1601 break;
1602 }
1603 }
1604
1605 return maxPacketCounterAllowed;
1606}
#define MAX_QUEST_LOG_SIZE
Definition: QuestDef.h:33
@ PLAYER_SLOTS_COUNT
Definition: Player.h:667
@ CMSG_QUESTGIVER_QUERY_QUEST
Definition: Opcodes.h:420
@ CMSG_CALENDAR_EVENT_MODERATOR_STATUS
Definition: Opcodes.h:1107
@ CMSG_LEARN_PREVIEW_TALENTS
Definition: Opcodes.h:1247
@ CMSG_TURN_IN_PETITION
Definition: Opcodes.h:482
@ CMSG_CALENDAR_ADD_EVENT
Definition: Opcodes.h:1099
@ MSG_RANDOM_ROLL
Definition: Opcodes.h:537
@ CMSG_CALENDAR_EVENT_REMOVE_INVITE
Definition: Opcodes.h:1105
@ MSG_PETITION_DECLINE
Definition: Opcodes.h:480
@ CMSG_SPELLCLICK
Definition: Opcodes.h:1046
@ MSG_MOVE_SET_FACING
Definition: Opcodes.h:248
@ CMSG_GUILD_DEL_RANK
Definition: Opcodes.h:593
@ CMSG_LOGOUT_REQUEST
Definition: Opcodes.h:105
@ CMSG_PET_RENAME
Definition: Opcodes.h:405
@ CMSG_QUEST_QUERY
Definition: Opcodes.h:122
@ CMSG_SET_GUILD_BANK_TEXT
Definition: Opcodes.h:1065
@ CMSG_REPORT_PVP_AFK
Definition: Opcodes.h:1026
@ CMSG_ARENA_TEAM_DISBAND
Definition: Opcodes.h:883
@ MSG_RAID_READY_CHECK
Definition: Opcodes.h:832
@ CMSG_SET_SHEATHED
Definition: Opcodes.h:510
@ CMSG_REQUEST_VEHICLE_SWITCH_SEAT
Definition: Opcodes.h:1175
@ CMSG_QUESTGIVER_STATUS_QUERY
Definition: Opcodes.h:416
@ CMSG_REPOP_REQUEST
Definition: Opcodes.h:376
@ CMSG_ACTIVATETAXI
Definition: Opcodes.h:459
@ CMSG_PETITION_QUERY
Definition: Opcodes.h:484
@ CMSG_PET_ABANDON
Definition: Opcodes.h:404
@ CMSG_QUEST_CONFIRM_ACCEPT
Definition: Opcodes.h:441
@ CMSG_FORCE_PITCH_RATE_CHANGE_ACK
Definition: Opcodes.h:1147
@ CMSG_QUESTGIVER_COMPLETE_QUEST
Definition: Opcodes.h:424
@ CMSG_GMTICKET_CREATE
Definition: Opcodes.h:547
@ CMSG_TOGGLE_PVP
Definition: Opcodes.h:625
@ CMSG_CALENDAR_EVENT_INVITE
Definition: Opcodes.h:1103
@ CMSG_GUILD_ACCEPT
Definition: Opcodes.h:162
@ CMSG_ITEM_REFUND_INFO
Definition: Opcodes.h:1233
@ CMSG_ACTIVATETAXIEXPRESS
Definition: Opcodes.h:816
@ CMSG_GUILD_BANK_DEPOSIT_MONEY
Definition: Opcodes.h:1034
@ CMSG_GUILD_LEAVE
Definition: Opcodes.h:171
@ CMSG_CREATURE_QUERY
Definition: Opcodes.h:126
@ CMSG_GUILD_BANK_WITHDRAW_MONEY
Definition: Opcodes.h:1035
@ CMSG_SET_CONTACT_NOTES
Definition: Opcodes.h:137
@ CMSG_QUEST_POI_QUERY
Definition: Opcodes.h:513
@ CMSG_GM_REPORT_LAG
Definition: Opcodes.h:1312
@ CMSG_SOCKET_GEMS
Definition: Opcodes.h:869
@ MSG_QUERY_GUILD_BANK_TEXT
Definition: Opcodes.h:1064
@ CMSG_GAMEOBJ_REPORT_USE
Definition: Opcodes.h:1183
@ CMSG_MOVE_TIME_SKIPPED
Definition: Opcodes.h:748
@ CMSG_CHAR_ENUM
Definition: Opcodes.h:85
@ MSG_SAVE_GUILD_EMBLEM
Definition: Opcodes.h:527
@ CMSG_COMPLETE_CINEMATIC
Definition: Opcodes.h:282
@ CMSG_SELF_RES
Definition: Opcodes.h:721
@ CMSG_REQUEST_VEHICLE_NEXT_SEAT
Definition: Opcodes.h:1174
@ CMSG_ARENA_TEAM_REMOVE
Definition: Opcodes.h:882
@ CMSG_GROUP_ASSISTANT_LEADER
Definition: Opcodes.h:685
@ CMSG_QUESTGIVER_ACCEPT_QUEST
Definition: Opcodes.h:423
@ CMSG_CHAR_RACE_CHANGE
Definition: Opcodes.h:1302
@ CMSG_REQUEST_VEHICLE_PREV_SEAT
Definition: Opcodes.h:1173
@ CMSG_REQUEST_VEHICLE_EXIT
Definition: Opcodes.h:1172
@ CMSG_GUILD_INVITE
Definition: Opcodes.h:160
@ CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:259
@ CMSG_GUILD_DECLINE
Definition: Opcodes.h:163
@ MSG_TALENT_WIPE_CONFIRM
Definition: Opcodes.h:712
@ CMSG_GROUP_INVITE
Definition: Opcodes.h:140
@ CMSG_TIME_SYNC_RESP
Definition: Opcodes.h:943
@ CMSG_FORCE_TURN_RATE_CHANGE_ACK
Definition: Opcodes.h:765
@ CMSG_NAME_QUERY
Definition: Opcodes.h:110
@ CMSG_ATTACKSTOP
Definition: Opcodes.h:352
@ CMSG_ARENA_TEAM_LEADER
Definition: Opcodes.h:884
@ CMSG_GROUP_UNINVITE
Definition: Opcodes.h:147
@ MSG_SET_RAID_DIFFICULTY
Definition: Opcodes.h:1289
@ CMSG_GMRESPONSE_RESOLVE
Definition: Opcodes.h:1294
@ CMSG_CONTROLLER_EJECT_PASSENGER
Definition: Opcodes.h:1223
@ CMSG_DELETEEQUIPMENT_SET
Definition: Opcodes.h:348
@ CMSG_OPT_OUT_OF_LOOT
Definition: Opcodes.h:1063
@ CMSG_EQUIPMENT_SET_SAVE
Definition: Opcodes.h:1243
@ CMSG_CALENDAR_COMPLAIN
Definition: Opcodes.h:1124
@ CMSG_GUILD_SET_OFFICER_NOTE
Definition: Opcodes.h:595
@ CMSG_CALENDAR_EVENT_SIGNUP
Definition: Opcodes.h:1240
@ CMSG_AUTOSTORE_BANK_ITEM
Definition: Opcodes.h:672
@ CMSG_STANDSTATECHANGE
Definition: Opcodes.h:287
@ CMSG_GROUP_CHANGE_SUB_GROUP
Definition: Opcodes.h:668
@ MSG_GUILD_BANK_LOG_QUERY
Definition: Opcodes.h:1036
@ CMSG_GUILD_ADD_RANK
Definition: Opcodes.h:592
@ CMSG_DISMISS_CRITTER
Definition: Opcodes.h:1195
@ CMSG_CALENDAR_GET_CALENDAR
Definition: Opcodes.h:1095
@ CMSG_CHAR_DELETE
Definition: Opcodes.h:86
@ CMSG_PET_NAME_QUERY
Definition: Opcodes.h:112
@ MSG_RAID_TARGET_UPDATE
Definition: Opcodes.h:831
@ CMSG_LEARN_PREVIEW_TALENTS_PET
Definition: Opcodes.h:1248
@ CMSG_AUTOBANK_ITEM
Definition: Opcodes.h:673
@ CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:930
@ CMSG_GROUP_SET_LEADER
Definition: Opcodes.h:150
@ CMSG_ARENA_TEAM_ACCEPT
Definition: Opcodes.h:879
@ CMSG_CHAR_CUSTOMIZE
Definition: Opcodes.h:1169
@ CMSG_BUG
Definition: Opcodes.h:488
@ CMSG_BANKER_ACTIVATE
Definition: Opcodes.h:469
@ CMSG_ITEM_REFUND
Definition: Opcodes.h:1234
@ CMSG_CALENDAR_COPY_EVENT
Definition: Opcodes.h:1102
@ CMSG_FORCE_SWIM_SPEED_CHANGE_ACK
Definition: Opcodes.h:261
@ CMSG_GUILD_DISBAND
Definition: Opcodes.h:173
@ CMSG_ITEM_NAME_QUERY
Definition: Opcodes.h:738
@ CMSG_GMTICKET_UPDATETEXT
Definition: Opcodes.h:549
@ CMSG_QUERY_INSPECT_ACHIEVEMENTS
Definition: Opcodes.h:1161
@ CMSG_CONTACT_LIST
Definition: Opcodes.h:132
@ CMSG_CHAR_RENAME
Definition: Opcodes.h:741
@ CMSG_QUESTGIVER_STATUS_MULTIPLE_QUERY
Definition: Opcodes.h:1077
@ CMSG_CALENDAR_EVENT_RSVP
Definition: Opcodes.h:1104
@ CMSG_TAXINODE_STATUS_QUERY
Definition: Opcodes.h:456
@ MSG_PARTY_ASSIGNMENT
Definition: Opcodes.h:940
@ CMSG_ARENA_TEAM_INVITE
Definition: Opcodes.h:877
@ CMSG_GMSURVEY_SUBMIT
Definition: Opcodes.h:840
@ CMSG_GROUP_DISBAND
Definition: Opcodes.h:153
@ CMSG_ALTER_APPEARANCE
Definition: Opcodes.h:1092
@ MSG_MOVE_HEARTBEAT
Definition: Opcodes.h:268
@ CMSG_GMTICKET_DELETETICKET
Definition: Opcodes.h:565
@ CMSG_SET_ACTION_BUTTON
Definition: Opcodes.h:326
@ CMSG_WRAP_ITEM
Definition: Opcodes.h:497
@ CMSG_GAMEOBJECT_QUERY
Definition: Opcodes.h:124
@ CMSG_LOOT_METHOD
Definition: Opcodes.h:152
@ CMSG_GROUP_ACCEPT
Definition: Opcodes.h:144
@ CMSG_GUILD_RANK
Definition: Opcodes.h:591
@ CMSG_BEGIN_TRADE
Definition: Opcodes.h:309
@ CMSG_GUILD_QUERY
Definition: Opcodes.h:114
@ CMSG_QUESTGIVER_REQUEST_REWARD
Definition: Opcodes.h:426
@ CMSG_LEAVE_BATTLEFIELD
Definition: Opcodes.h:767
@ CMSG_INSPECT
Definition: Opcodes.h:306
@ CMSG_GROUP_UNINVITE_GUID
Definition: Opcodes.h:148
@ CMSG_AREA_SPIRIT_HEALER_QUERY
Definition: Opcodes.h:768
@ CMSG_DISMISS_CONTROLLED_VEHICLE
Definition: Opcodes.h:1163
@ CMSG_DEL_FRIEND
Definition: Opcodes.h:136
@ CMSG_GUILD_INFO_TEXT
Definition: Opcodes.h:794
@ CMSG_TAXIQUERYAVAILABLENODES
Definition: Opcodes.h:458
@ CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE
Definition: Opcodes.h:1209
@ CMSG_MESSAGECHAT
Definition: Opcodes.h:179
@ CMSG_QUERY_TIME
Definition: Opcodes.h:492
@ CMSG_QUESTLOG_REMOVE_QUEST
Definition: Opcodes.h:434
@ MSG_CORPSE_QUERY
Definition: Opcodes.h:564
@ CMSG_ADD_FRIEND
Definition: Opcodes.h:135
@ CMSG_QUESTGIVER_CANCEL
Definition: Opcodes.h:430
@ CMSG_PAGE_TEXT_QUERY
Definition: Opcodes.h:120
@ CMSG_FORCE_RUN_SPEED_CHANGE_ACK
Definition: Opcodes.h:257
@ CMSG_LOGOUT_CANCEL
Definition: Opcodes.h:108
@ CMSG_GROUP_RAID_CONVERT
Definition: Opcodes.h:684
@ CMSG_READY_FOR_ACCOUNT_DATA_TIMES
Definition: Opcodes.h:1309
@ CMSG_CHAR_CREATE
Definition: Opcodes.h:84
@ CMSG_BATTLEMASTER_JOIN_ARENA
Definition: Opcodes.h:886
@ CMSG_WHO
Definition: Opcodes.h:128
@ CMSG_HEARTH_AND_RESURRECT
Definition: Opcodes.h:1210
@ CMSG_CORPSE_MAP_POSITION_QUERY
Definition: Opcodes.h:1236
@ CMSG_PLAYER_LOGIN
Definition: Opcodes.h:91
@ CMSG_PLAYER_LOGOUT
Definition: Opcodes.h:104
@ CMSG_NPC_TEXT_QUERY
Definition: Opcodes.h:413
@ CMSG_CALENDAR_UPDATE_EVENT
Definition: Opcodes.h:1100
@ CMSG_RESET_INSTANCES
Definition: Opcodes.h:827
@ CMSG_GROUP_DECLINE
Definition: Opcodes.h:145
@ MSG_SET_DUNGEON_DIFFICULTY
Definition: Opcodes.h:839
@ CMSG_GUILD_SET_PUBLIC_NOTE
Definition: Opcodes.h:594
@ CMSG_DUEL_CANCELLED
Definition: Opcodes.h:395
@ CMSG_GUILD_LEADER
Definition: Opcodes.h:174
@ CMSG_TRAINER_BUY_SPELL
Definition: Opcodes.h:464
@ MSG_GUILD_EVENT_LOG_QUERY
Definition: Opcodes.h:1053
@ MSG_QUERY_NEXT_MAIL_TIME
Definition: Opcodes.h:674
@ CMSG_UNLEARN_SKILL
Definition: Opcodes.h:544
@ CMSG_INITIATE_TRADE
Definition: Opcodes.h:308
@ CMSG_DUEL_ACCEPTED
Definition: Opcodes.h:394
@ CMSG_QUESTGIVER_CHOOSE_REWARD
Definition: Opcodes.h:428
@ CMSG_FORCE_WALK_SPEED_CHANGE_ACK
Definition: Opcodes.h:761
@ CMSG_ARENA_TEAM_DECLINE
Definition: Opcodes.h:880
@ CMSG_REALM_SPLIT
Definition: Opcodes.h:938
@ CMSG_CALENDAR_REMOVE_EVENT
Definition: Opcodes.h:1101
@ CMSG_ARENA_TEAM_QUERY
Definition: Opcodes.h:873
@ CMSG_QUERY_QUESTS_COMPLETED
Definition: Opcodes.h:1310
@ CMSG_CHAR_FACTION_CHANGE
Definition: Opcodes.h:1271
@ CMSG_GUILD_BANK_BUY_TAB
Definition: Opcodes.h:1032
@ MSG_PETITION_RENAME
Definition: Opcodes.h:735
@ CMSG_PETITION_BUY
Definition: Opcodes.h:475
@ CMSG_PETITION_SIGN
Definition: Opcodes.h:478
@ CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK
Definition: Opcodes.h:928
@ CMSG_ARENA_TEAM_LEAVE
Definition: Opcodes.h:881
@ CMSG_REMOVE_GLYPH
Definition: Opcodes.h:1192
@ CMSG_GUILD_BANK_QUERY_TAB
Definition: Opcodes.h:1029
@ CMSG_PLAYER_VEHICLE_ENTER
Definition: Opcodes.h:1222
@ CMSG_BUY_BANK_SLOT
Definition: Opcodes.h:471
@ CMSG_REQUEST_PARTY_MEMBER_STATS
Definition: Opcodes.h:669
@ CMSG_ITEM_QUERY_SINGLE
Definition: Opcodes.h:116
@ CMSG_GUILD_BANK_UPDATE_TAB
Definition: Opcodes.h:1033
@ CMSG_GUILD_MOTD
Definition: Opcodes.h:175
@ CMSG_GAMEOBJ_USE
Definition: Opcodes.h:207
@ CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK
Definition: Opcodes.h:763

References CMSG_ACTIVATETAXI, CMSG_ACTIVATETAXIEXPRESS, CMSG_ADD_FRIEND, CMSG_ALTER_APPEARANCE, CMSG_AREA_SPIRIT_HEALER_QUERY, CMSG_ARENA_TEAM_ACCEPT, CMSG_ARENA_TEAM_DECLINE, CMSG_ARENA_TEAM_DISBAND, CMSG_ARENA_TEAM_INVITE, CMSG_ARENA_TEAM_LEADER, CMSG_ARENA_TEAM_LEAVE, CMSG_ARENA_TEAM_QUERY, CMSG_ARENA_TEAM_REMOVE, CMSG_ATTACKSTOP, CMSG_AUTOBANK_ITEM, CMSG_AUTOSTORE_BANK_ITEM, CMSG_BANKER_ACTIVATE, CMSG_BATTLEMASTER_JOIN_ARENA, CMSG_BEGIN_TRADE, CMSG_BUG, CMSG_BUY_BANK_SLOT, CMSG_CALENDAR_ADD_EVENT, CMSG_CALENDAR_COMPLAIN, CMSG_CALENDAR_COPY_EVENT, CMSG_CALENDAR_EVENT_INVITE, CMSG_CALENDAR_EVENT_MODERATOR_STATUS, CMSG_CALENDAR_EVENT_REMOVE_INVITE, CMSG_CALENDAR_EVENT_RSVP, CMSG_CALENDAR_EVENT_SIGNUP, CMSG_CALENDAR_GET_CALENDAR, CMSG_CALENDAR_REMOVE_EVENT, CMSG_CALENDAR_UPDATE_EVENT, CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE, CMSG_CHAR_CREATE, CMSG_CHAR_CUSTOMIZE, CMSG_CHAR_DELETE, CMSG_CHAR_ENUM, CMSG_CHAR_FACTION_CHANGE, CMSG_CHAR_RACE_CHANGE, CMSG_CHAR_RENAME, CMSG_COMPLETE_CINEMATIC, CMSG_CONTACT_LIST, CMSG_CONTROLLER_EJECT_PASSENGER, CMSG_CORPSE_MAP_POSITION_QUERY, CMSG_CREATURE_QUERY, CMSG_DEL_FRIEND, CMSG_DELETEEQUIPMENT_SET, CMSG_DISMISS_CONTROLLED_VEHICLE, CMSG_DISMISS_CRITTER, CMSG_DUEL_ACCEPTED, CMSG_DUEL_CANCELLED, CMSG_EQUIPMENT_SET_SAVE, CMSG_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_FLIGHT_SPEED_CHANGE_ACK, CMSG_FORCE_PITCH_RATE_CHANGE_ACK, CMSG_FORCE_RUN_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_RUN_SPEED_CHANGE_ACK, CMSG_FORCE_SWIM_BACK_SPEED_CHANGE_ACK, CMSG_FORCE_SWIM_SPEED_CHANGE_ACK, CMSG_FORCE_TURN_RATE_CHANGE_ACK, CMSG_FORCE_WALK_SPEED_CHANGE_ACK, CMSG_GAMEOBJ_REPORT_USE, CMSG_GAMEOBJ_USE, CMSG_GAMEOBJECT_QUERY, CMSG_GM_REPORT_LAG, CMSG_GMRESPONSE_RESOLVE, CMSG_GMSURVEY_SUBMIT, CMSG_GMTICKET_CREATE, CMSG_GMTICKET_DELETETICKET, CMSG_GMTICKET_UPDATETEXT, CMSG_GROUP_ACCEPT, CMSG_GROUP_ASSISTANT_LEADER, CMSG_GROUP_CHANGE_SUB_GROUP, CMSG_GROUP_DECLINE, CMSG_GROUP_DISBAND, CMSG_GROUP_INVITE, CMSG_GROUP_RAID_CONVERT, CMSG_GROUP_SET_LEADER, CMSG_GROUP_UNINVITE, CMSG_GROUP_UNINVITE_GUID, CMSG_GUILD_ACCEPT, CMSG_GUILD_ADD_RANK, CMSG_GUILD_BANK_BUY_TAB, CMSG_GUILD_BANK_DEPOSIT_MONEY, CMSG_GUILD_BANK_QUERY_TAB, CMSG_GUILD_BANK_UPDATE_TAB, CMSG_GUILD_BANK_WITHDRAW_MONEY, CMSG_GUILD_DECLINE, CMSG_GUILD_DEL_RANK, CMSG_GUILD_DISBAND, CMSG_GUILD_INFO_TEXT, CMSG_GUILD_INVITE, CMSG_GUILD_LEADER, CMSG_GUILD_LEAVE, CMSG_GUILD_MOTD, CMSG_GUILD_QUERY, CMSG_GUILD_RANK, CMSG_GUILD_SET_OFFICER_NOTE, CMSG_GUILD_SET_PUBLIC_NOTE, CMSG_HEARTH_AND_RESURRECT, CMSG_INITIATE_TRADE, CMSG_INSPECT, CMSG_ITEM_NAME_QUERY, CMSG_ITEM_QUERY_SINGLE, CMSG_ITEM_REFUND, CMSG_ITEM_REFUND_INFO, CMSG_LEARN_PREVIEW_TALENTS, CMSG_LEARN_PREVIEW_TALENTS_PET, CMSG_LEAVE_BATTLEFIELD, CMSG_LOGOUT_CANCEL, CMSG_LOGOUT_REQUEST, CMSG_LOOT_METHOD, CMSG_MESSAGECHAT, CMSG_MOVE_TIME_SKIPPED, CMSG_NAME_QUERY, CMSG_NPC_TEXT_QUERY, CMSG_OPT_OUT_OF_LOOT, CMSG_PAGE_TEXT_QUERY, CMSG_PET_ABANDON, CMSG_PET_NAME_QUERY, CMSG_PET_RENAME, CMSG_PETITION_BUY, CMSG_PETITION_QUERY, CMSG_PETITION_SIGN, CMSG_PLAYER_LOGIN, CMSG_PLAYER_LOGOUT, CMSG_PLAYER_VEHICLE_ENTER, CMSG_QUERY_INSPECT_ACHIEVEMENTS, CMSG_QUERY_QUESTS_COMPLETED, CMSG_QUERY_TIME, CMSG_QUEST_CONFIRM_ACCEPT, CMSG_QUEST_POI_QUERY, CMSG_QUEST_QUERY, CMSG_QUESTGIVER_ACCEPT_QUEST, CMSG_QUESTGIVER_CANCEL, CMSG_QUESTGIVER_CHOOSE_REWARD, CMSG_QUESTGIVER_COMPLETE_QUEST, CMSG_QUESTGIVER_QUERY_QUEST, CMSG_QUESTGIVER_REQUEST_REWARD, CMSG_QUESTGIVER_STATUS_MULTIPLE_QUERY, CMSG_QUESTGIVER_STATUS_QUERY, CMSG_QUESTLOG_REMOVE_QUEST, CMSG_READY_FOR_ACCOUNT_DATA_TIMES, CMSG_REALM_SPLIT, CMSG_REMOVE_GLYPH, CMSG_REPOP_REQUEST, CMSG_REPORT_PVP_AFK, CMSG_REQUEST_PARTY_MEMBER_STATS, CMSG_REQUEST_VEHICLE_EXIT, CMSG_REQUEST_VEHICLE_NEXT_SEAT, CMSG_REQUEST_VEHICLE_PREV_SEAT, CMSG_REQUEST_VEHICLE_SWITCH_SEAT, CMSG_RESET_INSTANCES, CMSG_SELF_RES, CMSG_SET_ACTION_BUTTON, CMSG_SET_CONTACT_NOTES, CMSG_SET_GUILD_BANK_TEXT, CMSG_SET_SHEATHED, CMSG_SOCKET_GEMS, CMSG_SPELLCLICK, CMSG_STANDSTATECHANGE, CMSG_TAXINODE_STATUS_QUERY, CMSG_TAXIQUERYAVAILABLENODES, CMSG_TIME_SYNC_RESP, CMSG_TOGGLE_PVP, CMSG_TRAINER_BUY_SPELL, CMSG_TURN_IN_PETITION, CMSG_UNLEARN_SKILL, CMSG_WHO, CMSG_WRAP_ITEM, MAX_QUEST_LOG_SIZE, MSG_CORPSE_QUERY, MSG_GUILD_BANK_LOG_QUERY, MSG_GUILD_EVENT_LOG_QUERY, MSG_MOVE_HEARTBEAT, MSG_MOVE_SET_FACING, MSG_PARTY_ASSIGNMENT, MSG_PETITION_DECLINE, MSG_PETITION_RENAME, MSG_QUERY_GUILD_BANK_TEXT, MSG_QUERY_NEXT_MAIL_TIME, MSG_RAID_READY_CHECK, MSG_RAID_TARGET_UPDATE, MSG_RANDOM_ROLL, MSG_SAVE_GUILD_EMBLEM, MSG_SET_DUNGEON_DIFFICULTY, MSG_SET_RAID_DIFFICULTY, MSG_TALENT_WIPE_CONFIRM, and PLAYER_SLOTS_COUNT.

Referenced by EvaluateOpcode().

◆ operator=()

DosProtection & WorldSession::DosProtection::operator= ( DosProtection const &  right)
privatedelete

Friends And Related Function Documentation

◆ World

friend class World
friend

Member Data Documentation

◆ _PacketThrottlingMap

PacketThrottlingMap WorldSession::DosProtection::_PacketThrottlingMap
mutableprivate

Referenced by EvaluateOpcode().

◆ _policy

Policy WorldSession::DosProtection::_policy
private

Referenced by EvaluateOpcode().

◆ Session

WorldSession* WorldSession::DosProtection::Session
protected

Referenced by EvaluateOpcode().