Packages that use MaskedIPSet
Package
Description
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Peer profiles and capacity calculation, peer test jobs, peer selection for tunnel building, and the database and tunnel history used for peer selection.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of MaskedIPSet in net.i2p.router.networkdb.kademlia
Fields in net.i2p.router.networkdb.kademlia declared as MaskedIPSetModifier and TypeFieldDescriptionprivate final MaskedIPSetFloodfillVerifyStoreJob._ipSetMasked IPs of floodfills already tried.Uses of MaskedIPSet in net.i2p.router.peermanager
Methods in net.i2p.router.peermanager with parameters of type MaskedIPSetModifier and TypeMethodDescriptionprivate voidProfileOrganizer.lockedSelectActive(List<Hash> connected, int howMany, Set<Hash> toExclude, Set<Hash> matches, int mask, MaskedIPSet ipSet, double buildSuccess) Scan up toProfileOrganizer.maxCandidateSample(int, int)established peers for the active tier, inRandomIteratororder so the peers examined differ from call to call.private voidProfileOrganizer.lockedSelectPeers(Map<Hash, PeerProfile> peers, int howMany, Set<Hash> toExclude, Set<Hash> matches, int mask, MaskedIPSet ipSet, double buildSuccess, long rttCeiling) Selects peers while holding the lock.private voidProfileOrganizer.lockedSelectPeers(Map<Hash, PeerProfile> peers, int howMany, Set<Hash> toExclude, Set<Hash> matches, SessionKey randomKey, ProfileOrganizer.Slice subTierMode, int mask, MaskedIPSet ipSet, double buildSuccess, long rttCeiling) Collects up toProfileOrganizer.maxCandidateSample(int, int)candidates from a tier and hands them toProfileOrganizer.lockedPickLowestPriority(List, int, Set).private booleanProfileOrganizer.notRestricted(Hash peer, MaskedIPSet ipSet, int mask) Subnet-diversity gate for the running router.(package private) static booleanProfileOrganizer.notRestricted(RouterContext ctx, Hash peer, MaskedIPSet ipSet, int mask) Subnet-diversity gate: does this peer pass the masked-subnet, port and family check, and if it does, claim its fingerprints so that no later peer sharing any one of them passes as well.voidProfileOrganizer.selectActiveNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask, MaskedIPSet ipSet) Select from currently connected peers with IP-subnet diversity.voidProfileOrganizer.selectAllNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet) Select from all not-failing peers randomly, honouring a /n subnet diversity restriction.private voidProfileOrganizer.selectAllNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet, double buildSuccess, boolean preferUnproven) Random iterator over not-failing list with optional tier exclusion.voidProfileOrganizer.selectFastPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask, MaskedIPSet ipSet) Select fast-tier peers with IP-subnet diversity constraints.voidProfileOrganizer.selectFastPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, SessionKey randomKey, ProfileOrganizer.Slice subTierMode, int mask, MaskedIPSet ipSet) Select fast-tier peers deterministically sliced by a random key.voidProfileOrganizer.selectHighBandwidthPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet) Select high-bandwidth peers with tier-exclusion and IP-subnet diversity.private voidProfileOrganizer.selectHighBandwidthPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet, double buildSuccess) Iterates not-failing peers randomly, filtering for O/P/X bandwidth tiers with reliability checks (acceptance ratio, recent activity, peer tests).voidProfileOrganizer.selectHighCapacityPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask, MaskedIPSet ipSet) Select high-capacity peers with IP-subnet diversity.voidProfileOrganizer.selectNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet) Full-parameter select from not-failing peers.voidProfileOrganizer.selectNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, boolean onlyNotFailing, int mask, MaskedIPSet ipSet, boolean preferUnproven) Full-parameter select from not-failing peers.voidProfileOrganizer.selectNotFailingPeers(int howMany, Set<Hash> exclude, Set<Hash> matches, int mask, MaskedIPSet ipSet) Select from not-failing peers with IP-subnet diversity.Uses of MaskedIPSet in net.i2p.router.tunnel.pool
Fields in net.i2p.router.tunnel.pool declared as MaskedIPSetModifier and TypeFieldDescription(package private) final MaskedIPSetClientPeerSelector.SelectionParams.ipSetMasked IPs allowed by the restriction.Constructors in net.i2p.router.tunnel.pool with parameters of type MaskedIPSetModifierConstructorDescription(package private)SelectionParams(boolean isInbound, double buildSuccess, boolean useHighCapPrimary, boolean checkClosestHop, boolean hidden, boolean hiddenInbound, boolean hiddenOutbound, int ipRestriction, MaskedIPSet ipSet) Records the selection settings shared by one pass.