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

[ bsd3, library, network ] [ Propose Tags ]
This version is deprecated.

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

Usage

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>).

Hackage note: The false dependency on `vendored-network` is an annoying side effect of the way we pull in network files. Ideally the dependency on network files should be an internal cabal library, but internal libraries aren't supported for the build style we need.

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.1.0 (info)
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), network (>=3.1.0 && <3.2), vendored-network [details]
License BSD-3-Clause
Author Mads Rolsdorph
Maintainer Mads Rolsdorph
Revised Revision 2 made by rolsdorph at 2021-03-13T17:36:14Z
Category Network
Home page https://github.com/rolsdorph/network-packet-linux
Bug tracker https://github.com/rolsdorph/network-packet-linux/issues
Source repo head: git clone git@github.com:rolsdorph/network-packet-linux.git
Uploaded by rolsdorph at 2021-03-13T17:23:36Z
Distributions
Downloads 285 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed as of 2021-03-13 [all 1 reports]