Skip to content
This repository
branch: master

Apr 15, 2014

  1. Artem Teslenko

    Add -lnuma and -lrt to linker options for pf_ring

    New versions (since 5.6.2) of PF_RING should be compiled
    with numa and rt libraries.
    authored April 16, 2014

Feb 01, 2014

  1. Michael Santos

    epcap: remove redundant clause

    lists:concat/1 will convert integers to strings.
    authored February 01, 2014

Jan 31, 2014

  1. Michael Santos

    epcap: add switch to set env vars for libpcap

    Support setting environment variables using a command line switch:
        -e KEY=1234
    This works around some issues with running epcap under sudo, since sudo,
    by default, resets the environment for the process. See:
    authored January 31, 2014

Jan 16, 2014

  1. Michael Santos

    epcap: add verbose as an alias for {verbose,1}

    authored January 16, 2014

Jan 08, 2014

  1. Michael Santos

    Simplify command line processing

    authored January 08, 2014

Jan 07, 2014

  1. Michael Santos

    Increment the minor version

    authored January 07, 2014
  2. Michael Santos

    epcap: use pcap_loop

    Simplify by using the callback version of pcap_next. Only send the
    process the {epcap, eof} tuple if a file was used. Since EOF only occurs
    when the port exits, this should probably be moved to the 'EXIT' info
    handler in the future.
    authored January 07, 2014

Dec 17, 2013

  1. Michael Santos

    epcap_priv: move macros to include

    authored December 17, 2013

Dec 15, 2013

  1. Michael Santos

    epcap: (cleanup)

    authored December 15, 2013

Dec 14, 2013

  1. Artem Teslenko

    Remove -static flag for PF_RING

    authored December 14, 2013
  2. Michael Santos

    Default to the primary group of the epcap user

    Use the primary group of the epcap user when dropping privileges in the
    epcap port process, if a group has not been specified.
    See: #16
    Thanks @josemic!
    authored December 14, 2013
  3. Michael Santos

    epcap_priv: cleanup

    authored December 14, 2013

Nov 30, 2013

  1. Michael Santos

    getopts: maintain the order of arguments

    authored November 30, 2013
  2. Michael Santos

    getopts: allow empty filter expressions

    The getopts/1 quote function generated an invalid expression ("\"\"")
    if a pcap filter was not set.
    authored November 30, 2013

Nov 25, 2013

  1. Michael Santos

    getopts: cleanup generation of command line

    authored November 25, 2013

Oct 30, 2013

  1. Michael Santos

    sniff: support the snaplen option

    For testing pkt:decode/2, allow the epcap snaplen option. To use
    decode/2 with whole frames, set snaplen to 16#ffff.
    authored October 30, 2013

Oct 27, 2013

  1. Michael Santos

    sniff: improve handling of packet headers

    Modify sniff to convert packet headers from records to a printable
    representation. This allows dumping packets with an arbitrary number of
    headers such as IPv6 packets with extension headers.
    Add support for logging the full packet in hex or binary format:
        sniff:start([{filter, "ip6"}, {format, [hex,binary]}]).
    authored October 27, 2013

Oct 21, 2013

  1. Michael Santos

    sniff: use pkt:dlt/1

    Use the datalink type as returned by pkt:dlt/1. The atoms returned by
    dlt/1 are based on the constants defined in the C header files. So
    instead of return 'ether' for ethernet traffic, 'en10mb' will be
    authored October 21, 2013

Oct 20, 2013

  1. Michael Santos

    test: explicitly set TCP sum to 0

    authored October 20, 2013

Oct 17, 2013

  1. Michael Santos

    test: add a test for send/2

    The test snoops a packet going to port 29 and re-writes the packet to
    port 39 using pkt.
    authored October 17, 2013
  2. Michael Santos

    test: add a test for sniffing a packet

    Simple test for retrieving a packet. Note, there is a timing issue here.
    Even though the port has been started, epcap is not monitoring the
    interface yet. If the test does a TCP connection immediately with a
    timeout of 100, epcap does not see the SYN.
    Increasing the timeout to 2000 gives epcap enough time to being
    monitoring the interface.
    This test brings up two possible issues with epcap:
    1. should epcap send a message to the process when it is ready?
    2. Should the message sent back from epcap include an identifier?
        {packet, ID, DataLinkType, Time, Length, Packet}
    Where ID is the pid of the gen_server (or it could be the port() or the
    OS pid).
    authored October 16, 2013

Oct 16, 2013

  1. Michael Santos

    sniff: remove hard coded interface

    authored October 16, 2013
  2. Michael Santos

    epcap: cleanup, use a bitset to hold options

    These options were int's initialized to either 0 or 1.
    From the pcap_set_rfmon man page:
        If rfmon is non-zero, monitor mode will be set, otherwise it will
        not be set.
    For pcap_open_live(), the man page doesn't specify what the value of
    promisc (the 3rd arg) should be. Probably any non-zero value is true but
    EPCAP_OPT_PROMISC happens to be 1, imitating the old behaviour.
    authored October 16, 2013
  3. Michael Santos

    epcap: cleanup, make the functions static

    authored October 16, 2013

Oct 15, 2013

  1. Michael Santos

    epcap: suppress format warnings in debug messages

    authored October 15, 2013
  2. Michael Santos

    epcap_net: remove leftover header

    authored October 15, 2013
  3. Michael Santos

    epcap: enable support for injecting packets

    Allow epcap to generate packets from the network device using
    pcap_inject(3PCAP). By default, support is compiled in but disabled. To
    enable injection, start epcap with the {inject, true} option.
    If send is disabled, data is discarded by the port.
    If send is enabled, errors returned by pcap_inject are fatal. The port
    will terminate, crashing the gen_server. Partial writes are not
    considered to be errors and are ignored.
    This patch changes the behaviour of the gen_server/port interaction
    slightly: previously any activity on the port's stdin would cause the
    port to exit. Now the port will exit on error (from read or pcap_inject)
    or on EOF.
    authored October 15, 2013

Oct 14, 2013

  1. Artem Teslenko

    Fix formatting of Changes section

    authored October 14, 2013
  2. Michael Santos

    epcap_net: remove deprecated module

    Finally remove the deprecated epcap_net module as suggested by @ates and
    @josemic in:
    Increment version and switch to semvar format.
    authored October 14, 2013

Feb 09, 2013

  1. Michael Santos

    Update rebar URL; copyright heartbeat

    authored February 09, 2013
  2. Michael Santos

    Merge pull request #9 from ates/master

    Several small patches
    authored February 09, 2013

Feb 08, 2013

  1. Artem Teslenko

    Fix app file format

    authored February 08, 2013
  2. Artem Teslenko

    [PATCH 3/3] Do not export the progname/0 function

    authored February 08, 2013
  3. Artem Teslenko

    [PATCH 2/3] Remove unnecessary pfring option

    authored February 08, 2013
  4. Artem Teslenko

    [PATCH 1/3] Do not override the specific chroot option

    authored February 08, 2013
Something went wrong with that request. Please try again.