L L4D2node

_GLOBAL__sub_I_net_showudp

0x0009d3c0 · 2172 bytes · unknown

Decompiled

undefined (0 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void _GLOBAL__sub_I_net_showudp(void)

{
  vec2_origin._0_4_ = 0;
  vec2_invalid._0_4_ = 0x7f7fffff;
  vec2_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._0_4_ = 0x7f7fffff;
  vec4_invalid._4_4_ = 0x7f7fffff;
  vec4_invalid._8_4_ = 0x7f7fffff;
  vec4_invalid._12_4_ = 0x7f7fffff;
  vec2_origin._4_4_ = 0;
  vec4_origin._0_4_ = 0;
  vec4_origin._4_4_ = 0;
  vec4_origin._8_4_ = 0;
  vec4_origin._12_4_ = 0;
  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 *)net_showudp,"net_showudp","0",0x80000,
                 "Dump UDP packets summary to console");
  __cxa_atexit(ConVar::~ConVar,net_showudp,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showudp_remoteonly,"net_showudp_remoteonly","0",0x80000,
                 "Dump non-loopback udp only");
  __cxa_atexit(ConVar::~ConVar,net_showudp_remoteonly,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showtcp,"net_showtcp","0",0,"Dump TCP stream summary to console");
  __cxa_atexit(ConVar::~ConVar,net_showtcp,&__dso_handle);
  ConVar::ConVar((ConVar *)net_blocksize,"net_maxfragments","1200",0,"Max fragment bytes per packet"
                 ,true,256.0,true,1200.0);
  __cxa_atexit(ConVar::~ConVar,net_blocksize,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showmsg,"net_showmsg","0",2,"Show incoming message: <0|1|name>");
  __cxa_atexit(ConVar::~ConVar,net_showmsg,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showfragments,"net_showfragments","0",0,"Show netchannel fragments");
  __cxa_atexit(ConVar::~ConVar,net_showfragments,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showpeaks,"net_showpeaks","0",0,
                 "Show messages for large packets only: <size>");
  __cxa_atexit(ConVar::~ConVar,net_showpeaks,&__dso_handle);
  ConVar::ConVar((ConVar *)net_blockmsg,"net_blockmsg","0",0x4000,
                 "Discards incoming message: <0|1|name>");
  __cxa_atexit(ConVar::~ConVar,net_blockmsg,&__dso_handle);
  ConVar::ConVar((ConVar *)net_showdrop,"net_showdrop","0",2,"Show dropped packets in console");
  __cxa_atexit(ConVar::~ConVar,net_showdrop,&__dso_handle);
  ConVar::ConVar((ConVar *)net_drawslider,"net_drawslider","0",0,
                 "Draw completion slider during signon");
  __cxa_atexit(ConVar::~ConVar,net_drawslider,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chokeloopback,"net_chokeloop","0",2,
                 "Apply bandwidth choke to loopback packets");
  __cxa_atexit(ConVar::~ConVar,net_chokeloopback,&__dso_handle);
  ConVar::ConVar((ConVar *)net_maxfilesize,"net_maxfilesize","16",0,
                 "Maximum allowed file size for uploading in MB",true,0.0,true,64.0);
  __cxa_atexit(ConVar::~ConVar,net_maxfilesize,&__dso_handle);
  ConVar::ConVar((ConVar *)net_compresspackets,"net_compresspackets","1",2,
                 "Use lz compression on game packets.");
  __cxa_atexit(ConVar::~ConVar,net_compresspackets,&__dso_handle);
  ConVar::ConVar((ConVar *)net_compresspackets_minsize,"net_compresspackets_minsize","1000",2,
                 "Don\'t bother compressing packets below this size.");
  __cxa_atexit(ConVar::~ConVar,net_compresspackets_minsize,&__dso_handle);
  ConVar::ConVar((ConVar *)net_maxcleartime,"net_maxcleartime","4.0",0,
                 "Max # of seconds we can wait for next packets to be sent based on rate setting (0 == no limit)."
                );
  __cxa_atexit(ConVar::~ConVar,net_maxcleartime,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_stats_lru,"net_chan_stats_lru","3",0x80000,
                 "Netchannel statistics LRU accumulation buffer size");
  __cxa_atexit(ConVar::~ConVar,net_chan_stats_lru,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_stats_dump,"net_chan_stats_dump","0",0x80000,
                 "Netchannel statistics will dump in the logs upon request");
  __cxa_atexit(ConVar::~ConVar,net_chan_stats_dump,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_stats_dump_top_msgs,"net_chan_stats_dump_top_msgs","5",0x80000,
                 "Netchannel statistics will dump so many top messages in each category");
  __cxa_atexit(ConVar::~ConVar,net_chan_stats_dump_top_msgs,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_limit_msec,"net_chan_limit_msec","0",0x80000,
                 "Netchannel processing is limited to so many milliseconds, abort connection if exceeding budget"
                );
  __cxa_atexit(ConVar::~ConVar,net_chan_limit_msec,&__dso_handle);
  ConVar::ConVar((ConVar *)ZombieNetworkCompression,"z_network_compression","1",0,
                 "Enables bz2 compression");
  __cxa_atexit(ConVar::~ConVar,ZombieNetworkCompression,&__dso_handle);
  ConVar::ConVar((ConVar *)net_dumptest,"net_dumptest","0",0);
  __cxa_atexit(ConVar::~ConVar,net_dumptest,&__dso_handle);
  ConVar::ConVar((ConVar *)net_paranoid,"net_paranoid","1",0);
  __cxa_atexit(ConVar::~ConVar,net_paranoid,&__dso_handle);
  g_NetParanoid[0] = 0;
  g_NetParanoid._4_4_ = 0;
  g_NetParanoid._8_4_ = 0;
  g_NetParanoid._12_4_ = 0;
  g_NetParanoid._16_4_ = 0;
  g_NetParanoid._20_4_ = 0;
  g_NetParanoid._24_4_ = 0;
  __cxa_atexit(CNetchanParanoidMode::~CNetchanParanoidMode,g_NetParanoid,&__dso_handle);
  g_arrNetChannelProcessingCallbacks = 0;
  _DAT_003ab94c = 0;
  _DAT_003ab950 = 0;
  DAT_003ab954 = 0;
  _DAT_003ab958 = 0;
  __cxa_atexit(CUtlVector<INetChannelPacketProcessingCallback*,CUtlMemory<INetChannelPacketProcessingCallback*,int>>
               ::~CUtlVector,&g_arrNetChannelProcessingCallbacks,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_limit_in_debug_session,"net_chan_limit_in_debug_session","0",
                 0x80000,
                 "Netchannel processing can be limited in debug session to test actual disconnects")
  ;
  __cxa_atexit(ConVar::~ConVar,net_chan_limit_in_debug_session,&__dso_handle);
  ConVar::ConVar((ConVar *)net_chan_limit_disabled,"net_chan_limit_disabled","0",0x80000,
                 "Disable netchannel processing limits");
  __cxa_atexit(ConVar::~ConVar,net_chan_limit_disabled,&__dso_handle);
  ConVar::ConVar((ConVar *)net_minroutable,"net_minroutable","16",2,"Forces larger payloads.");
  __cxa_atexit(ConVar::~ConVar,net_minroutable,&__dso_handle);
  return;
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

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.



        
        

⚠ 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.

Return-type handling cheatsheet (DHookReturn)