Permalink
Commits on Sep 19, 2014
  1. Merge pull request #4 from legoscia/dialyzer-fix

    Use atom_to_list in epcap:progname/0 to make Dialyzer in R15 happy
    elbrujohalcon committed Sep 19, 2014
Commits on Feb 13, 2014
  1. Merge pull request #5 from esl/controlling_libpcap

    Controlling libpcap
    mentels committed Feb 13, 2014
Commits on Jan 29, 2014
  1. Allow setting pcap internal buffer size

    The buffer size can be adjusted by passing -b option with an integer
    value to epcap C program. Erlang epcap:start/1 function accepts an
    {buffer_size, integer()} option.
    (Motivated by FlowForwarding/LINC-Switch#283).
    mentels committed Jan 28, 2014
  2. Add printing pcap stats; improve logs formatting

    Epcap prints pcap statistics for received and dropped packets
    in verbose mode. The statistics can be printed at a certain interval.
    Existing logs has better formatting now.
    epcap C program accepts a new option for setting the interval: -S
    followed by an integer and epcap:start/1 accepts
    an {stat_interval, integer()} option.
    (Motivated by FlowForwarding/LINC-Switch#283).
    mentels committed Jan 20, 2014
Commits on Oct 18, 2013
  1. Use atom_to_list in epcap:progname/0 to make Dialyzer in R15 happy

    filename:join/1 accepts atoms in its argument, but because of an overly
    restrictive type specification, Dialyzer gives a warning for this in
    releases earlier than R16B.  As the R15 releases are still widely used,
    it's worth putting in a call to atom_to_list to avoid false positives in
    Dialyzer output.
    legoscia committed Oct 18, 2013
Commits on May 10, 2013
Commits on Nov 12, 2012
  1. Merge pull request #3 from kvakvs/ethfix2

    Fix getopt() parameters for supporting new options
    rpt committed Nov 12, 2012
  2. Fixed getopt() parameters in C for supporting new options -I -N

    Dmytro Lytovchenko committed Nov 12, 2012
Commits on Nov 6, 2012
  1. Merge pull request #2 from kvakvs/ethfix

    Add new options support to epcap:start
    rpt committed Nov 6, 2012
Commits on Nov 5, 2012
  1. Added new options support for epcap:start in erlang interface

    Dmytro Lytovchenko committed Nov 5, 2012
  2. Merge pull request #1 from kvakvs/ethfix

    Ethfix
    rpt committed Nov 5, 2012
  3. New options -N (allow running on ipv4-less interfaces) and -I (filter…

    … only incoming packets)
    Dmytro Lytovchenko committed Nov 5, 2012
Commits on Apr 20, 2012
  1. Allow more gen_servers per machine

    goj committed Apr 19, 2012
  2. Ignoring rebar, ebin and priv

    goj committed Apr 19, 2012
Commits on Mar 30, 2012
  1. Move sniff to the examples directory

    Create an examples directory and a makefile target for sniff.
    msantos committed Mar 30, 2012
Commits on Mar 13, 2012
  1. Add a start up script

    msantos committed Mar 13, 2012
  2. Rebar fix spam

    msantos committed Mar 13, 2012
Commits on Dec 7, 2011
  1. Generate app file using rebar

    msantos committed Dec 7, 2011
Commits on Dec 5, 2011
Commits on Dec 4, 2011
  1. Use a short timeout for pcap_next_ex()

    The behaviour of the timeout passed to pcap differs between BSD and
    Linux. On Linux, a timeout of 0 means "return after the next packet is
    received". On BSD, it means "return after the packet buffer is full".
    
    Revert to the old timeout of 500 ms.
    
    Thanks to Elliot Crosby-McCullough for discovering and debugging
    the problem on Mac OS X!
    msantos committed Dec 4, 2011
Commits on Apr 25, 2011
  1. Download pkt dependency

    Thanks serfire!
    msantos committed Apr 25, 2011
Commits on Apr 9, 2011
  1. Initial support for wireless monitor mode

    Add option to put wireless interface into monitor mode. Untested as,
    at least with my wireless interface, pcap thinks monitor mode is not
    supported.
    msantos committed Apr 9, 2011
Commits on Apr 5, 2011
  1. Change the packet message format

    Change the format of the message sent from the epcap port to Erlang to:
    
        {packet, DatalinkType, Time, Length, Packet}
    
    Bump the version, the change is not backwards compatible.
    
    Thanks to Harald Welte for the suggestion!
    msantos committed Apr 5, 2011
Commits on Mar 11, 2011
  1. Communicate the EOF and TIMEOUT events from C port into Erlang code

    using a {epcap, eof} / {epcap, timeout} tuple
    laf0rge committed with msantos Mar 11, 2011
Commits on Mar 9, 2011
  1. Manually deprecated files with pkt

    Maybe splitting off epcap_net was not such a great idea! o_O
    msantos committed Mar 9, 2011
  2. Move DLT TODO's to pkt

    msantos committed Mar 9, 2011
  3. sniff: accept any link type (fake ethernet header)

    For now, throw away the link type header except for ethernet. Tested
    with DLT_NULL and DLT_LINUX_SLL.
    msantos committed Mar 9, 2011
  4. sniff: support BSD loopback

    msantos committed Mar 9, 2011
  5. Dump IPv6 packets

    Tested on IPv6 loopback only, a sure sign of quality!
    msantos committed Mar 9, 2011
  6. Markdownify README

    msantos committed Mar 9, 2011