Copyright | (c) Formaltech Inc. 2017 |
---|---|
License | BSD3 |
Maintainer | protob3n@gmail.com |
Stability | experimental |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype LinkIndex = LinkIndex Int
- newtype LinkName = LinkName ByteString
- data LinkEther = LinkEther Word8 Word8 Word8 Word8 Word8 Word8
- data LinkBroadcastEther = LinkBroadcastEther Word8 Word8 Word8 Word8 Word8 Word8
- data AnyLink = AnyLink
- data LinkType
- newtype VlanId = VlanId Word16
- data LinkMaster
- data LinkState
- data LinkPromiscuity
- data LinkArp
- data LinkDebug
- newtype LinkMTU = LinkMTU Word32
- newtype LinkGroup = LinkGroup Word32
- data LinkStats = LinkStats {
- lsRxPackets :: Word64
- lsTxPackets :: Word64
- lsRxBytes :: Word64
- lsTxBytes :: Word64
- lsRxErrors :: Word64
- lsTxErrors :: Word64
- lsRxDropped :: Word64
- lsTxDropped :: Word64
- lsMulticast :: Word64
- lsCollisions :: Word64
- lsRxLengthErrors :: Word64
- lsRxOverErrors :: Word64
- lsRxCRCErrors :: Word64
- lsRxFrameErrors :: Word64
- lsRxFIFOErrors :: Word64
- lsRxMissedErrors :: Word64
- lsTxAbortedErrors :: Word64
- lsTxCarrierErrors :: Word64
- lsTxFIFOErrors :: Word64
- lsTxHeartbeatErrors :: Word64
- lsTxWindowErrors :: Word64
- lsRxCompressed :: Word64
- lsTxCompressed :: Word64
- lsRxNoHandler :: Word64
- data IfInfoMsg = IfInfoMsg {}
- data IfInfoMsgPart
Documentation
A link identified by its index.
Instances
A link identified by its name.
Instances
An ethernet address.
Instances
data LinkBroadcastEther Source #
An ethernet broadcast address.
Instances
Link wildcard.
Instances
Eq AnyLink Source # | |
Show AnyLink Source # | |
Request AnyLink Source # | |
Defined in System.Linux.RTNetlink.Link | |
Message AnyLink Source # | |
Defined in System.Linux.RTNetlink.Link type MessageHeader AnyLink :: Type Source # messageHeaderParts :: AnyLink -> [HeaderPart (MessageHeader AnyLink)] Source # messageAttrs :: AnyLink -> AttributeList Source # | |
type MessageHeader AnyLink Source # | |
Defined in System.Linux.RTNetlink.Link |
The type of a link.
Dummy | A dummy interface. |
Bridge | A bridge interface. |
Dot1QVlan LinkIndex VlanId | An 802.1Q vlan interface. |
Dot1adVlan LinkIndex VlanId | An 802.1ad vlan interface. |
NamedLinkType ByteString | Specify the link type name as a string. |
Instances
Eq LinkType Source # | |
Show LinkType Source # | |
Reply LinkType Source # | |
Defined in System.Linux.RTNetlink.Link type ReplyHeader LinkType :: Type Source # | |
Request LinkType Source # | |
Defined in System.Linux.RTNetlink.Link | |
Create LinkType Source # | |
Defined in System.Linux.RTNetlink.Link | |
Message LinkType Source # | |
Defined in System.Linux.RTNetlink.Link type MessageHeader LinkType :: Type Source # messageHeaderParts :: LinkType -> [HeaderPart (MessageHeader LinkType)] Source # messageAttrs :: LinkType -> AttributeList Source # | |
type ReplyHeader LinkType Source # | |
Defined in System.Linux.RTNetlink.Link | |
type MessageHeader LinkType Source # | |
Defined in System.Linux.RTNetlink.Link |
Tag id for a vlan interface.
Instances
Enum VlanId Source # | |
Defined in System.Linux.RTNetlink.Link | |
Eq VlanId Source # | |
Integral VlanId Source # | |
Defined in System.Linux.RTNetlink.Link | |
Num VlanId Source # | |
Ord VlanId Source # | |
Real VlanId Source # | |
Defined in System.Linux.RTNetlink.Link toRational :: VlanId -> Rational # | |
Show VlanId Source # | |
Reply VlanId Source # | |
Defined in System.Linux.RTNetlink.Link type ReplyHeader VlanId :: Type Source # fromNLMessage :: NLMessage (ReplyHeader VlanId) -> Maybe VlanId Source # | |
Message VlanId Source # | |
Defined in System.Linux.RTNetlink.Link type MessageHeader VlanId :: Type Source # messageHeaderParts :: VlanId -> [HeaderPart (MessageHeader VlanId)] Source # messageAttrs :: VlanId -> AttributeList Source # | |
type ReplyHeader VlanId Source # | |
Defined in System.Linux.RTNetlink.Link | |
type MessageHeader VlanId Source # | |
Defined in System.Linux.RTNetlink.Link |
data LinkMaster Source #
The master interface for this interface for this one. For example, a bridge interface.
Instances
The state of a link.
Instances
Eq LinkState Source # | |
Show LinkState Source # | |
Reply LinkState Source # | |
Defined in System.Linux.RTNetlink.Link type ReplyHeader LinkState :: Type Source # | |
Change LinkName LinkState Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkName -> LinkState -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkState -> AttributeList Source # | |
Change LinkIndex LinkState Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkIndex -> LinkState -> [HeaderPart (MessageHeader LinkIndex)] Source # changeAttrs :: LinkIndex -> LinkState -> AttributeList Source # | |
type ReplyHeader LinkState Source # | |
Defined in System.Linux.RTNetlink.Link |
data LinkPromiscuity Source #
A Promiscuous
link accepts all frames at layer 2; a Chaste
one accepts
just those addressed to it and possibly ones sent to the broadcast address.
Instances
Whether to use ARP on the interface to resolve L3 addresses to L2 ones.
Instances
Eq LinkArp Source # | |
Show LinkArp Source # | |
Reply LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link type ReplyHeader LinkArp :: Type Source # fromNLMessage :: NLMessage (ReplyHeader LinkArp) -> Maybe LinkArp Source # | |
Change LinkName LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkName -> LinkArp -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkArp -> AttributeList Source # | |
Change LinkIndex LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkIndex -> LinkArp -> [HeaderPart (MessageHeader LinkIndex)] Source # changeAttrs :: LinkIndex -> LinkArp -> AttributeList Source # | |
type ReplyHeader LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link |
Internal debug flag. If this is supported by the driver, it will generally
spew some extra information into dmesg
.
Instances
Eq LinkDebug Source # | |
Show LinkDebug Source # | |
Reply LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link type ReplyHeader LinkDebug :: Type Source # | |
Change LinkName LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkName -> LinkDebug -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkDebug -> AttributeList Source # | |
Change LinkIndex LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link changeHeaderParts :: LinkIndex -> LinkDebug -> [HeaderPart (MessageHeader LinkIndex)] Source # changeAttrs :: LinkIndex -> LinkDebug -> AttributeList Source # | |
type ReplyHeader LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link |
Maximum transmission unit for a link. Note that some interface types, such
as Bridge
s, don't allow this to be changed.
Instances
Instances
LinkStats | |
|
The header corresponding to link messages, based on struct ifinfomsg
from linux/if_link.h
.
Instances
Eq IfInfoMsg Source # | |
Show IfInfoMsg Source # | |
Serialize IfInfoMsg Source # | |
Sized IfInfoMsg Source # | |
ReplyMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link replyTypeNumbers :: IfInfoMsg -> [TypeNumber] Source # | |
RequestMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link | |
ChangeMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link | |
DestroyMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link | |
CreateMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link | |
Header IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link type HeaderPart IfInfoMsg :: Type Source # | |
type HeaderPart IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link |
data IfInfoMsgPart Source #
Combinable components of an IfInfoMsg.
Instances
Eq IfInfoMsgPart Source # | |
Defined in System.Linux.RTNetlink.Link (==) :: IfInfoMsgPart -> IfInfoMsgPart -> Bool # (/=) :: IfInfoMsgPart -> IfInfoMsgPart -> Bool # | |
Show IfInfoMsgPart Source # | |
Defined in System.Linux.RTNetlink.Link showsPrec :: Int -> IfInfoMsgPart -> ShowS # show :: IfInfoMsgPart -> String # showList :: [IfInfoMsgPart] -> ShowS # |