network-packet-linux: Types for working with Linux packet sockets

[ bsd3, library, network ] [ Propose Tags ]

network-packet-linux makes it possible to use the network package with Linux packet sockets. Packet sockets are described in packet (7).


Combine functions from Network.Socket.Address with types from Network.Socket.Linux in order to work with packet sockets.

See the Network.Socket.Linux module documentation or examples/ListenToInterface.hs for an example.

About the package

As of version 3.0.0, the network package provides a socket API that is implemented in terms of the SocketAddress typeclass. network-packet-linux provides SockAddrLl, a SocketAddress instance that corresponds to the sockaddr_ll struct from <linux/if_packet.h>.

Additionally, network-packet-linux provides some convenience types: ProtocolId (an enumeration of the Ethernet protocol IDs defined in <linux/if_ether.h>) and PacketType (enumerating the packet types defined in <linux/if_packet.h>).


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS], (info)
Change log
Dependencies base (>=4.12 && <5), network (>=3.1.0 && <3.2) [details]
License BSD-3-Clause
Author Mads Rolsdorph
Maintainer Mads Rolsdorph
Category Network
Home page
Bug tracker
Source repo head: git clone
Uploaded by rolsdorph at 2021-03-20T13:22:11Z
Downloads 284 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-03-20 [all 1 reports]