_GLOBAL__sub_I_CheckConnectionLessRateLimits
0x000a0fe0 · 579 bytes · unknown
Decompiled
undefined (0 params)
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* CheckConnectionLessRateLimits(netadr_s&) */
void _GLOBAL__sub_I_CheckConnectionLessRateLimits(void)
{
vec2_origin._0_4_ = 0;
vec2_origin._4_4_ = 0;
vec2_invalid._0_4_ = 0x7f7fffff;
vec2_invalid._4_4_ = 0x7f7fffff;
UNSPECIFIED_LOGGING_COLOR._0_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._1_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._2_1_ = 0;
UNSPECIFIED_LOGGING_COLOR._3_1_ = 0;
ConVar::ConVar((ConVar *)sv_max_queries_sec,"sv_max_queries_sec","3.0",0,
"Maximum queries per second to respond to from a single IP address.");
__cxa_atexit(ConVar::~ConVar,sv_max_queries_sec,&__dso_handle);
ConVar::ConVar((ConVar *)sv_max_queries_window,"sv_max_queries_window","15",0,
"Window over which to average queries per second averages.");
__cxa_atexit(ConVar::~ConVar,sv_max_queries_window,&__dso_handle);
ConVar::ConVar((ConVar *)sv_max_queries_sec_global,"sv_max_queries_sec_global","60",0,
"Maximum queries per second to respond to from anywhere.");
__cxa_atexit(ConVar::~ConVar,sv_max_queries_sec_global,&__dso_handle);
ConVar::ConVar((ConVar *)sv_logblocks,"sv_logblocks","0",0,
"If true when log when a query is blocked (can cause very large log files)");
__cxa_atexit(ConVar::~ConVar,sv_logblocks,&__dso_handle);
ConVar::ConVar((ConVar *)sv_logblocks_summary,"sv_logblocks_summary","1",0,
"If true, log once when a query was blocked over the previous window");
__cxa_atexit(ConVar::~ConVar,sv_logblocks_summary,&__dso_handle);
rateChecker._0_4_ = CIPRateLimit::LessIP;
rateChecker._8_4_ = 0x100;
rateChecker._12_4_ = 0;
rateChecker._4_4_ = malloc(0x2000);
rateChecker._16_4_ = 0xffffffff;
rateChecker._20_4_ = 0;
rateChecker._24_4_ = 0xffffffff;
rateChecker._28_4_ = 0xffffffff;
rateChecker._36_4_ = 0;
rateChecker._40_4_ = 0xffffffff;
rateChecker._32_4_ = rateChecker._4_4_;
__cxa_atexit(CIPRateLimit::~CIPRateLimit,rateChecker,&__dso_handle);
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
⚠ This function has no mangled symbol — it may be internal/static. The
Linux gamedata field uses @-prefix symbol resolution which
requires an exported mangled name. You'll need a Linux byte signature
for this one (extract via extract_signature.java).
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.