Safe Haskell | None |
---|---|
Language | Haskell98 |
- data MagicCookie = MagicCookie
- dhcp4MagicCookie :: Word32
- data Dhcp4Option
- = OptSubnetMask SubnetMask
- | OptTimeOffset Word32
- | OptRouters [IP4]
- | OptTimeServers [IP4]
- | OptIEN116NameServers [IP4]
- | OptNameServers [IP4]
- | OptLogServers [IP4]
- | OptCookieServers [IP4]
- | OptLPRServers [IP4]
- | OptImpressServers [IP4]
- | OptResourceLocationServers [IP4]
- | OptHostName NVTAsciiString
- | OptBootFileSize Word16
- | OptMeritDumpFile NVTAsciiString
- | OptDomainName NVTAsciiString
- | OptSwapServer IP4
- | OptRootPath NVTAsciiString
- | OptExtensionsPath NVTAsciiString
- | OptEnableIPForwarding Bool
- | OptEnableNonLocalSourceRouting Bool
- | OptPolicyFilters [IP4Mask]
- | OptMaximumDatagramReassemblySize Word16
- | OptDefaultTTL Word8
- | OptPathMTUAgingTimeout Word32
- | OptPathMTUPlateauTable [Word16]
- | OptInterfaceMTU Word16
- | OptAllSubnetsAreLocal Bool
- | OptBroadcastAddress IP4
- | OptPerformMaskDiscovery Bool
- | OptShouldSupplyMasks Bool
- | OptShouldPerformRouterDiscovery Bool
- | OptRouterSolicitationAddress IP4
- | OptStaticRoutes [(IP4, IP4)]
- | OptShouldNegotiateArpTrailers Bool
- | OptArpCacheTimeout Word32
- | OptUseRFC1042EthernetEncapsulation Bool
- | OptTcpDefaultTTL Word8
- | OptTcpKeepaliveInterval Word32
- | OptTcpKeepaliveUseGarbage Bool
- | OptNisDomainName NVTAsciiString
- | OptNisServers [IP4]
- | OptNtpServers [IP4]
- | OptVendorSpecific ByteString
- | OptNetBiosNameServers [IP4]
- | OptNetBiosDistributionServers [IP4]
- | OptNetBiosNodeType NetBiosNodeType
- | OptNetBiosScope NVTAsciiString
- | OptXWindowsFontServer [IP4]
- | OptXWindowsDisplayManagers [IP4]
- | OptNisPlusDomain NVTAsciiString
- | OptNisPlusServers [IP4]
- | OptSmtpServers [IP4]
- | OptPopServers [IP4]
- | OptNntpServers [IP4]
- | OptWwwServers [IP4]
- | OptFingerServers [IP4]
- | OptIrcServers [IP4]
- | OptStreetTalkServers [IP4]
- | OptStreetTalkDirectoryAssistanceServers [IP4]
- | OptFQDN NVTAsciiString
- | OptRequestIPAddress IP4
- | OptIPAddressLeaseTime Word32
- | OptOverload OverloadOption
- | OptTftpServer NVTAsciiString
- | OptBootfileName NVTAsciiString
- | OptMessageType Dhcp4MessageType
- | OptServerIdentifier IP4
- | OptParameterRequestList [OptionTagOrError]
- | OptErrorMessage NVTAsciiString
- | OptMaxDHCPMessageSize Word16
- | OptRenewalTime Word32
- | OptRebindingTime Word32
- | OptVendorClass NVTAsciiString
- | OptClientIdentifier ByteString
- | OptNetWareDomainName NVTAsciiString
- | OptNetWareInfo ByteString
- | OptAutoconfiguration Bool
- getDhcp4Option :: Get (Either ControlTag Dhcp4Option)
- putDhcp4Option :: Dhcp4Option -> Put
- data Dhcp4MessageType
- data ControlTag
- putControlOption :: ControlTag -> Put
- data Dhcp4OptionTag
- = OptTagPad
- | OptTagEnd
- | OptTagSubnetMask
- | OptTagTimeOffset
- | OptTagRouters
- | OptTagTimeServers
- | OptTagIEN116NameServers
- | OptTagNameServers
- | OptTagLogServers
- | OptTagCookieServers
- | OptTagLPRServers
- | OptTagImpressServers
- | OptTagResourceLocationServers
- | OptTagHostName
- | OptTagBootFileSize
- | OptTagMeritDumpFile
- | OptTagDomainName
- | OptTagSwapServer
- | OptTagRootPath
- | OptTagExtensionsPath
- | OptTagEnableIPForwarding
- | OptTagEnableNonLocalSourceRouting
- | OptTagPolicyFilters
- | OptTagMaximumDatagramReassemblySize
- | OptTagDefaultTTL
- | OptTagPathMTUAgingTimeout
- | OptTagPathMTUPlateauTable
- | OptTagInterfaceMTU
- | OptTagAllSubnetsAreLocal
- | OptTagBroadcastAddress
- | OptTagPerformMaskDiscovery
- | OptTagShouldSupplyMasks
- | OptTagShouldPerformRouterDiscovery
- | OptTagRouterSolicitationAddress
- | OptTagStaticRoutes
- | OptTagShouldNegotiateArpTrailers
- | OptTagArpCacheTimeout
- | OptTagUseRFC1042EthernetEncapsulation
- | OptTagTcpDefaultTTL
- | OptTagTcpKeepaliveInterval
- | OptTagTcpKeepaliveUseGarbage
- | OptTagNisDomainName
- | OptTagNisServers
- | OptTagNtpServers
- | OptTagVendorSpecific
- | OptTagNetBiosNameServers
- | OptTagNetBiosDistributionServers
- | OptTagNetBiosNodeType
- | OptTagNetBiosScope
- | OptTagXWindowsFontServer
- | OptTagXWindowsDisplayManagers
- | OptTagNisPlusDomain
- | OptTagNisPlusServers
- | OptTagSmtpServers
- | OptTagPopServers
- | OptTagNntpServers
- | OptTagWwwServers
- | OptTagFingerServers
- | OptTagIrcServers
- | OptTagStreetTalkServers
- | OptTagStreetTalkDirectoryAssistanceServers
- | OptTagFQDN
- | OptTagRequestIPAddress
- | OptTagIPAddressLeaseTime
- | OptTagOverload
- | OptTagTftpServer
- | OptTagBootfileName
- | OptTagMessageType
- | OptTagServerIdentifier
- | OptTagParameterRequestList
- | OptTagErrorMessage
- | OptTagMaxDHCPMessageSize
- | OptTagRenewalTime
- | OptTagRebindingTime
- | OptTagVendorClass
- | OptTagClientIdentifier
- | OptTagNetWareDomainName
- | OptTagNetWareInfo
- | OptTagAutoconfiguration
- data OptionTagOrError
- getOptionTag :: Get OptionTagOrError
- putOptionTag :: OptionTagOrError -> Put
- data NetBiosNodeType
- data OverloadOption
- getDhcp4Options :: ByteString -> ByteString -> Get (String, String, [Dhcp4Option])
- putDhcp4Options :: [Dhcp4Option] -> Put
- scrubControls :: (Applicative m, Monad m) => [Either ControlTag Dhcp4Option] -> m [Dhcp4Option]
- eatPad :: Monad m => Either ControlTag Dhcp4Option -> m ()
- replicateA :: Applicative f => Int -> f a -> f [a]
- repeatedly :: Get a -> Get [a]
- nullTerminated :: ByteString -> String
- lookupOverload :: [Dhcp4Option] -> Maybe OverloadOption
- lookupFile :: [Dhcp4Option] -> Maybe NVTAsciiString
- lookupSname :: [Dhcp4Option] -> Maybe NVTAsciiString
- lookupParams :: [Dhcp4Option] -> Maybe [OptionTagOrError]
- lookupMessageType :: [Dhcp4Option] -> Maybe Dhcp4MessageType
- lookupRequestAddr :: [Dhcp4Option] -> Maybe IP4
- lookupLeaseTime :: [Dhcp4Option] -> Maybe Word32
- class Option a where
- defaultFixedGetOption :: CodecAtom a => Get a
- defaultFixedPutOption :: CodecAtom a => a -> Put
- fixedLen :: Int -> Get a -> Get a
- getRecord :: CodecAtom a => (Int, Get a)
- newtype NVTAsciiString = NVTAsciiString String
- getLen :: Get Int
- putLen :: Int -> Put
Documentation
data Dhcp4Option Source
putDhcp4Option :: Dhcp4Option -> Put Source
data Dhcp4MessageType Source
putControlOption :: ControlTag -> Put Source
data Dhcp4OptionTag Source
data OptionTagOrError Source
data NetBiosNodeType Source
data OverloadOption Source
getDhcp4Options :: ByteString -> ByteString -> Get (String, String, [Dhcp4Option]) Source
putDhcp4Options :: [Dhcp4Option] -> Put Source
scrubControls :: (Applicative m, Monad m) => [Either ControlTag Dhcp4Option] -> m [Dhcp4Option] Source
eatPad :: Monad m => Either ControlTag Dhcp4Option -> m () Source
eatPad
fails on any non ControlPad
option with an error message.
replicateA :: Applicative f => Int -> f a -> f [a] Source
repeatedly :: Get a -> Get [a] Source
nullTerminated :: ByteString -> String Source
lookupFile :: [Dhcp4Option] -> Maybe NVTAsciiString Source
lookupSname :: [Dhcp4Option] -> Maybe NVTAsciiString Source
lookupParams :: [Dhcp4Option] -> Maybe [OptionTagOrError] Source
lookupRequestAddr :: [Dhcp4Option] -> Maybe IP4 Source
lookupLeaseTime :: [Dhcp4Option] -> Maybe Word32 Source
Option Bool | |
Option Word8 | |
Option Word16 | |
Option Word32 | |
Option ByteString | |
Option IP4 | |
Option SubnetMask | |
Option NVTAsciiString | |
Option OverloadOption | |
Option NetBiosNodeType | |
Option Dhcp4MessageType | |
CodecAtom a => Option [a] | |
(CodecAtom a, CodecAtom b) => Option (a, b) |
defaultFixedGetOption :: CodecAtom a => Get a Source
defaultFixedPutOption :: CodecAtom a => a -> Put Source
newtype NVTAsciiString Source