A system-independent interface for user-level packet capture https://github.com/bos/pcap

LTS Haskell 7.24:
Stackage Nightly 2016-09-14:
Latest on Hackage:

See all snapshots pcap appears in

BSD-3-Clause licensed by Bryan O'Sullivan, Nick Burlett, Dominic Steinitz, Gregory Wright (original author)
Maintained by Bryan O'Sullivan

Module documentation for

This version can be pinned in stack with:[email protected]:9f9f64abf126b9bbbe2698dd2ec31d25b445d70aab6c845aadd75ae79b6cc0b3,1313

A Haskell wrapper around the C libpcap library.

It provides Haskell bindings for most of the libpcap API as of libpcap version 0.9.7. The bindings are divided into a very efficient low-level wrapper, Network.Pcap.Base, and a higher-level module, Network.Pcap, that’s easier to use.

To install:

cabal install pcap

Get involved!

Please report bugs via the github issue tracker.

There’s also a git mirror:

  • git clone git://github.com/bos/pcap.git

Master Mercurial repository:

  • hg clone http://bitbucket.org/bos/pcap

(You can create and contribute changes using either Mercurial or git.)


This library was originally written by Gregory Wright, with contributions by Dominic Steinitz. The current maintainer is Bryan O’Sullivan, [email protected].

Used by 1 package in lts-7.24(full list with versions):