#include <banman.h>
Definition at line 58 of file banman.h.
◆ ~BanMan()
◆ BanMan()
◆ Ban() [1/2]
void BanMan::Ban |
( |
const CNetAddr & |
net_addr, |
|
|
int64_t |
ban_time_offset = 0 , |
|
|
bool |
since_unix_epoch = false |
|
) |
| |
◆ Ban() [2/2]
void BanMan::Ban |
( |
const CSubNet & |
sub_net, |
|
|
int64_t |
ban_time_offset = 0 , |
|
|
bool |
since_unix_epoch = false |
|
) |
| |
◆ ClearBanned()
void BanMan::ClearBanned |
( |
| ) |
|
◆ Discourage()
void BanMan::Discourage |
( |
const CNetAddr & |
net_addr | ) |
|
◆ DumpBanlist()
void BanMan::DumpBanlist |
( |
| ) |
|
◆ GetBanned()
void BanMan::GetBanned |
( |
banmap_t & |
banmap | ) |
|
◆ GUARDED_BY() [1/3]
◆ GUARDED_BY() [2/3]
◆ GUARDED_BY() [3/3]
◆ IsBanned() [1/2]
bool BanMan::IsBanned |
( |
const CNetAddr & |
net_addr | ) |
|
Return whether net_addr is banned.
Definition at line 89 of file banman.cpp.
◆ IsBanned() [2/2]
bool BanMan::IsBanned |
( |
const CSubNet & |
sub_net | ) |
|
Return whether sub_net is exactly banned.
Definition at line 104 of file banman.cpp.
◆ IsDiscouraged()
bool BanMan::IsDiscouraged |
( |
const CNetAddr & |
net_addr | ) |
|
Return whether net_addr is discouraged.
Definition at line 83 of file banman.cpp.
◆ LoadBanlist()
void BanMan::LoadBanlist |
( |
| ) |
|
|
private |
◆ SweepBanned()
void BanMan::SweepBanned |
( |
| ) |
|
|
private |
clean unused entries (if bantime has expired)
Definition at line 182 of file banman.cpp.
◆ Unban() [1/2]
bool BanMan::Unban |
( |
const CNetAddr & |
net_addr | ) |
|
◆ Unban() [2/2]
bool BanMan::Unban |
( |
const CSubNet & |
sub_net | ) |
|
◆ m_ban_db
◆ m_banned_mutex
Mutex BanMan::m_banned_mutex |
|
private |
◆ m_client_interface
◆ m_default_ban_time
const int64_t BanMan::m_default_ban_time |
|
private |
The documentation for this class was generated from the following files: