pcap-conduit-0.1: Conduit <-> libpcap

PortabilityGHC probably
Stabilityexperimental
Maintainermad.one@gmail.com
Safe HaskellSafe-Infered

Network.Pcap.Conduit

Description

This package provides conduit Sources for pcap data ( captured by wireshark, tcpdump, etc.) You can enumerate pcap files and live interfaces.

Based on pcap-enumerator.

Synopsis

Documentation

type Packet = (PktHdr, ByteString)Source

Convenient alias.

sourceOffline :: MonadIO m => FilePath -> Source m PacketSource

Create a conduit Source from a pcap data file.

sourceLiveSource

Arguments

:: MonadIO m 
=> String

Device name

-> Int

Snapshot length in bytes

-> Bool

Promiscuous mode?

-> Int64

Timeout (in microseconds)

-> Source m Packet 

Create a conduit Source from a live interface.