Permalink
Switch branches/tags
Nothing to show
Commits on Oct 16, 2013
  1. epcap: cleanup, use a bitset to hold options

    msantos committed Oct 16, 2013
    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.
Commits on Oct 15, 2013
  1. epcap: enable support for injecting packets

    msantos committed Oct 15, 2013
    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.
Commits on Oct 14, 2013
  1. Fix formatting of Changes section

    ates committed Oct 14, 2013
  2. epcap_net: remove deprecated module

    msantos committed Oct 14, 2013
    Finally remove the deprecated epcap_net module as suggested by @ates and
    @josemic in:
    
    #11
    
    Increment version and switch to semvar format.
Commits on Feb 9, 2013
  1. Merge pull request #9 from ates/master

    msantos committed Feb 9, 2013
    Several small patches
Commits on Feb 8, 2013
  1. Fix app file format

    ates committed Feb 8, 2013
Commits on Oct 27, 2012
  1. Remove debug message

    msantos committed Oct 27, 2012
    Thanks @ates!
Commits on Oct 23, 2012
  1. Merge pull request #8 from ates/pfring2

    msantos committed Oct 23, 2012
    Introduce new options cluster_id and cpu_affinity
Commits on Oct 22, 2012
Commits on Oct 3, 2012
  1. Merge pull request #6 from ates/pfring

    msantos committed Oct 3, 2012
    PF_RING support
  2. Fix README

    ates committed Oct 3, 2012
  3. Update README

    ates committed Oct 3, 2012
Commits on Oct 2, 2012
  1. Fix formatting

    ates committed Oct 2, 2012
Commits on Sep 20, 2012
  1. Merge pull request #5 from DeadZen/patch-1

    msantos committed Sep 20, 2012
    Support OSX before PCAP_NETMASK_UNKNOWN was added
  2. Support OSX before PCAP_NETMASK_UNKNOWN was added

    DeadZen committed Sep 20, 2012
    This was added recently and failed to build due to being undeclared.
Commits on Jul 14, 2012
  1. Update README

    msantos committed Jul 14, 2012
  2. sniff: save epcap PID in state

    msantos committed Jul 14, 2012
Commits on Jul 12, 2012
Commits on Jul 1, 2012
  1. Merge branch 'fixes'

    msantos committed Jul 1, 2012
  2. Configure allowed open fds based on OS

    msantos committed Jul 1, 2012
    On Mac OS X (and other BSDs), poll() does not check RLIMIT_NOFILES.
    The default is to assume the best case and disallow any new fds from
    being opened in the child.
  3. Check for child exit before select

    msantos committed Jul 1, 2012
    If the child exits before the parent goes into select, the parent will
    block in select indefinitely.
  4. Sandbox pcap using process limits

    msantos committed Jul 1, 2012
    Provide some basic process restrictions on the process using pcap. On
    Linux, poll() checks the number of allowed file descriptors. If setrlimit
    sets the value of RLIMIT_NOFILES to 0, poll() fails with EINVAL.