rtnetlink-0.1.0.3: Manipulate network devices, addresses, and routes on Linux

Copyright(c) Formaltech Inc. 2017
LicenseBSD3
Maintainerprotob3n@gmail.com
Stabilityexperimental
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

System.Socket.Family.Netlink

Description

 

Synopsis

Documentation

data Netlink Source #

Netlink socket family.

data family SocketAddress f :: * #

The SocketAddress type is a data family. This allows to provide different data constructors depending on the socket family without knowing all of them in advance or the need to extend this core library.

SocketAddressInet  inetLoopback  8080     :: SocketAddress Inet
SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6

Instances

Eq (SocketAddress Inet6) 
Eq (SocketAddress Inet) 
Eq (SocketAddress Netlink) # 
Read (SocketAddress Netlink) # 
Show (SocketAddress Inet6) 
Show (SocketAddress Inet) 
Show (SocketAddress Netlink) # 
Storable (SocketAddress Inet6) 
Storable (SocketAddress Inet) 
Storable (SocketAddress Netlink) # 
Serialize (SocketAddress Netlink) # 
data SocketAddress Inet6 
data SocketAddress Inet 
data SocketAddress Netlink # 

class NetlinkGroup g where Source #

Class of netlink groups. This is extensible because groups vary by netlink subsystem.

Minimal complete definition

netlinkGroupNumber

netlinkAddress :: NetlinkGroup g => [g] -> IO (SocketAddress Netlink) Source #

Construct a netlink socket from a collection of groups.

netlinkAddressPid :: NetlinkGroup g => Word32 -> [g] -> SocketAddress Netlink Source #

Like netlinkAddress, but with a configurable source address.

netlinkKernel :: SocketAddress Netlink Source #

The kernel's address.