Safe Haskell | None |
---|---|
Language | Haskell2010 |
Structures and rules for describing routers.
- data RouterDesc = RouterDesc {
- routerNickname :: String
- routerIPv4Address :: String
- routerORPort :: Word16
- routerDirPort :: Maybe Word16
- routerParseLog :: [String]
- routerAvgBandwidth :: Int
- routerBurstBandwidth :: Int
- routerObservedBandwidth :: Int
- routerPlatformName :: String
- routerEntryPublished :: DateTime
- routerFingerprint :: ByteString
- routerHibernating :: Bool
- routerUptime :: Maybe Integer
- routerOnionKey :: PublicKey
- routerNTorOnionKey :: Maybe PublicKey
- routerSigningKey :: PublicKey
- routerExitRules :: [ExitRule]
- routerIPv6Policy :: Either [PortSpec] [PortSpec]
- routerSignature :: ByteString
- routerContact :: Maybe String
- routerFamily :: [NodeFamily]
- routerReadHistory :: Maybe (DateTime, Int, [Int])
- routerWriteHistory :: Maybe (DateTime, Int, [Int])
- routerCachesExtraInfo :: Bool
- routerExtraInfoDigest :: Maybe ByteString
- routerHiddenServiceDir :: Maybe Int
- routerLinkProtocolVersions :: [Int]
- routerCircuitProtocolVersions :: [Int]
- routerAllowSingleHopExits :: Bool
- routerAlternateORAddresses :: [(String, Word16)]
- routerStatus :: [String]
- blankRouterDesc :: RouterDesc
- data NodeFamily
- data ExitRule
- data AddrSpec
- data PortSpec
Documentation
data RouterDesc Source
The complete description of a router within the Tor network.
blankRouterDesc :: RouterDesc Source
A blank router description, with most of the options initialized with standard "blank" values.
data NodeFamily Source
A family descriptor for a node. Either a nickname, or a digest referencing the family, or both.
A rule for accepting or rejecting traffic, usually specified by exit nodes.
ExitRuleAccept AddrSpec PortSpec | Accept matching traffic. |
ExitRuleReject AddrSpec PortSpec | Reject matching traffic. |
An address or subnet specifier.
AddrSpecAll | Accept any address |
AddrSpecIP4 String | Accept this specific address. |
AddrSpecIP4Mask String String | Accept this IP address and subnet mask (255.255.255.0,etc.) |
AddrSpecIP4Bits String Int | Accept this IP address and CIDR mask (/24,etc.) |
AddrSpecIP6 String | Accept this specific IP6 address. |
AddrSpecIP6Bits String Int | Accept this subnet and CIDR mask. |
A port specifier
PortSpecAll | Accept any port |
PortSpecRange Word16 Word16 | Accept ports between the two values, inclusive. |
PortSpecSingle Word16 | Accept only the given port. |