| Copyright | (c) Formaltech Inc. 2017 |
|---|---|
| License | BSD3 |
| Maintainer | protob3n@gmail.com |
| Stability | experimental |
| Portability | Linux |
| Safe Haskell | None |
| Language | Haskell2010 |
System.Linux.RTNetlink.Link
Description
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.
Constructors
| LinkName ByteString |
Instances
An ethernet address.
Instances
data LinkBroadcastEther Source #
An ethernet broadcast address.
Instances
Link wildcard.
Constructors
| AnyLink |
Instances
| Eq AnyLink Source # | |
| Show AnyLink Source # | |
| Request AnyLink Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| Message AnyLink Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type MessageHeader AnyLink :: Type Source # Methods 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.
Constructors
| 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 Associated Types type ReplyHeader LinkType :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader LinkType) -> Maybe LinkType Source # | |
| Request LinkType Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| Create LinkType Source # | |
Defined in System.Linux.RTNetlink.Link | |
| Message LinkType Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type MessageHeader LinkType :: Type Source # Methods 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 Methods toRational :: VlanId -> Rational # | |
| Show VlanId Source # | |
| Reply VlanId Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type ReplyHeader VlanId :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader VlanId) -> Maybe VlanId Source # | |
| Message VlanId Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type MessageHeader VlanId :: Type Source # Methods 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 Associated Types type ReplyHeader LinkState :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader LinkState) -> Maybe LinkState Source # | |
| Change LinkName LinkState Source # | |
Defined in System.Linux.RTNetlink.Link Methods changeHeaderParts :: LinkName -> LinkState -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkState -> AttributeList Source # | |
| Change LinkIndex LinkState Source # | |
Defined in System.Linux.RTNetlink.Link Methods 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.
Constructors
| Promiscuous | |
| Chaste |
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 Associated Types type ReplyHeader LinkArp :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader LinkArp) -> Maybe LinkArp Source # | |
| Change LinkName LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link Methods changeHeaderParts :: LinkName -> LinkArp -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkArp -> AttributeList Source # | |
| Change LinkIndex LinkArp Source # | |
Defined in System.Linux.RTNetlink.Link Methods 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 Associated Types type ReplyHeader LinkDebug :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader LinkDebug) -> Maybe LinkDebug Source # | |
| Change LinkName LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link Methods changeHeaderParts :: LinkName -> LinkDebug -> [HeaderPart (MessageHeader LinkName)] Source # changeAttrs :: LinkName -> LinkDebug -> AttributeList Source # | |
| Change LinkIndex LinkDebug Source # | |
Defined in System.Linux.RTNetlink.Link Methods 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 Bridges, don't allow this to be changed.
Instances
Instances
Constructors
| LinkStats | |
Fields
| |
Instances
| Eq LinkStats Source # | |
| Show LinkStats Source # | |
| Reply LinkStats Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type ReplyHeader LinkStats :: Type Source # Methods fromNLMessage :: NLMessage (ReplyHeader LinkStats) -> Maybe LinkStats Source # | |
| type ReplyHeader LinkStats Source # | |
Defined in System.Linux.RTNetlink.Link | |
The header corresponding to link messages, based on struct ifinfomsg
from linux/if_link.h.
Constructors
| IfInfoMsg | |
Instances
| Eq IfInfoMsg Source # | |
| Show IfInfoMsg Source # | |
| Serialize IfInfoMsg Source # | |
| Sized IfInfoMsg Source # | |
| ReplyMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Methods replyTypeNumbers :: IfInfoMsg -> [TypeNumber] Source # | |
| RequestMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| ChangeMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| DestroyMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| CreateMessageHeader IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Methods | |
| Header IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link Associated Types type HeaderPart IfInfoMsg :: Type Source # Methods fromHeaderParts :: [HeaderPart IfInfoMsg] -> IfInfoMsg Source # | |
| type HeaderPart IfInfoMsg Source # | |
Defined in System.Linux.RTNetlink.Link | |
data IfInfoMsgPart Source #
Combinable components of an IfInfoMsg.
Constructors
| IfInfoMsgIndex Int32 | |
| IfInfoMsgFlags (ChangeFlags Word32) |
Instances
| Eq IfInfoMsgPart Source # | |
Defined in System.Linux.RTNetlink.Link Methods (==) :: IfInfoMsgPart -> IfInfoMsgPart -> Bool # (/=) :: IfInfoMsgPart -> IfInfoMsgPart -> Bool # | |
| Show IfInfoMsgPart Source # | |
Defined in System.Linux.RTNetlink.Link Methods showsPrec :: Int -> IfInfoMsgPart -> ShowS # show :: IfInfoMsgPart -> String # showList :: [IfInfoMsgPart] -> ShowS # | |