netlink-1.0.0.4: Netlink communication for Haskell

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

System.Linux.Netlink.Route

Description

This module provides wrappers for functionality provided by the netlink route family

Synopsis

Documentation

data Packet a Source #

The generic netlink message type

Instances

Show RoutePacket # 
Show NL80211Packet # 
Eq a => Eq (Packet a) Source # 

Methods

(==) :: Packet a -> Packet a -> Bool #

(/=) :: Packet a -> Packet a -> Bool #

Show a => Show (Packet a) Source # 

Methods

showsPrec :: Int -> Packet a -> ShowS #

show :: Packet a -> String #

showList :: [Packet a] -> ShowS #

Show a => Show (GenlPacket a) #

Show Instance for GenlPacket

type RoutePacket = Packet Message Source #

Typedef for route messages

getRoutePackets :: ByteString -> Either String [RoutePacket] Source #

Get a route message or an error

data Message Source #

The static data for route messages

getLinkAddress :: AttributeReader LinkAddress Source #

get L2 address from netlink attributes

getLinkBroadcast :: AttributeReader LinkAddress Source #

get L2 broadcast address from netlink attributes

getLinkName :: AttributeReader String Source #

get interface name from netlink attributes

getLinkMTU :: AttributeReader Word32 Source #

get mtu from netlink attributes

getLinkQDisc :: AttributeReader String Source #

I actually have no idea what QDisc is

getLinkTXQLen :: AttributeReader Word32 Source #

I should look this up

putLinkAddress :: AttributeWriter LinkAddress Source #

set L2 address on netlink attributes

putLinkBroadcast :: AttributeWriter LinkAddress Source #

set L2 broadcast address on netlink attributes

putLinkName :: AttributeWriter String Source #

set interface name on netlink attributes

putLinkMTU :: AttributeWriter Word32 Source #

set mtu on netlink attributes

putLinkQDisc :: AttributeWriter String Source #

I actually have no idea what QDisc is

putLinkTXQLen :: AttributeWriter Word32 Source #

I should look this up