mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
almost done with load/save of BanLists. Changed the item format to include masked_bytes, and changed subitem types. Also disabled code from rsgxsreputationitems.cc wich was a copy of the code from rsbanlistitems.cc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8316 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4ebc87b9c2
commit
20a2d42038
9 changed files with 376 additions and 68 deletions
|
@ -40,11 +40,15 @@ extern RsBanList *rsBanList ;
|
|||
#define RSBANLIST_REASON_DHT 2
|
||||
#define RSBANLIST_REASON_AUTO_RANGE 3
|
||||
|
||||
class RsTlvBanListEntry ;
|
||||
|
||||
class BanListPeer
|
||||
{
|
||||
public:
|
||||
BanListPeer() ;
|
||||
|
||||
void toRsTlvBanListEntry(RsTlvBanListEntry& e) const ;
|
||||
void fromRsTlvBanListEntry(const RsTlvBanListEntry& e) ;
|
||||
|
||||
struct sockaddr_storage addr;
|
||||
uint8_t masked_bytes ; // 0 = []/32. 1=[]/24, 2=[]/16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue