Maintainer | ongy |
---|---|
Stability | testing |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
GeNetlink is used as multiplexer since netlink only supports 32 families.
This module provides the basic datatypes used by genetlink.
- data GenlHeader = GenlHeader {
- genlCmd :: Word8
- genlVersion :: Word8
- data GenlData a = GenlData {
- genlDataHeader :: GenlHeader
- genlDataData :: a
- type GenlPacket a = Packet (GenlData a)
- getGenlHeader :: Get GenlHeader
- putGeHeader :: GenlHeader -> Put
- makeSocket :: IO NetlinkSocket
Documentation
data GenlHeader Source #
The static data used by genetlink
For more information about genetlink look into usrincludelinuxgenetlink.h
GenlHeader | |
|
Eq GenlHeader Source # | |
Show GenlHeader Source # | Show isntance of GenlHeader |
Convertable GenlHeader Source # | The |
A wrapper around GenlHeader
This may be used by actual implementations to handle additional static data placed after the genl header by the protocol they implement.
GenlData | |
|
Show NL80211Packet # | |
Eq a => Eq (GenlData a) Source # | |
Show a => Show (GenlPacket a) Source # | Show Instance for GenlPacket |
Show a => Show (GenlData a) Source # | Show instance of GenlData |
Show (GenlData NoData) Source # | Show instance of GenlData for NoData |
Convertable a => Convertable (GenlData a) Source # | The |
type GenlPacket a = Packet (GenlData a) Source #
Type declaration for genetlink packets
getGenlHeader :: Get GenlHeader Source #
Get
function for GenlHeader
putGeHeader :: GenlHeader -> Put Source #
Put
function for GenlHeader
makeSocket :: IO NetlinkSocket Source #
makeSocketGeneric
preapplied for genetlink family