STTNet
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
stt::security::IPInformation Struct Reference

Security state and connection set for a single IP. More...

#include <sttnet_English.h>

Public Attributes

int activeConnections = 0
 
RateState connectRate
 
int badScore = 0
 
std::unordered_map< int,
ConnectionState
conns
 

Detailed Description

Security state and connection set for a single IP.

Core state unit of ConnectionLimiter, implementing layered IP-level + fd-level defense:

Defense semantics
  • activeConnections / connectRate:
    • Protect against connection floods and brute-force
  • badScore:
    • Used to escalate defense (disconnect / temporary ban)
Note
  • Blacklisting (ban TTL) is managed by ConnectionLimiter globally.
  • badScore can be decayed over time or reset after a ban.

Member Data Documentation

int stt::security::IPInformation::activeConnections = 0
int stt::security::IPInformation::badScore = 0
RateState stt::security::IPInformation::connectRate
std::unordered_map<int, ConnectionState> stt::security::IPInformation::conns

The documentation for this struct was generated from the following file: