Permalink
Switch branches/tags
Nothing to show
Commits on Feb 1, 2012
  1. Merge pull request #5 from nosolosoftware/master

    ahobson committed Feb 1, 2012
    Capture::fh
Commits on Jan 20, 2012
Commits on Aug 2, 2011
  1. Merge pull request #4 from nearbuy/master

    ahobson committed Aug 2, 2011
     Fixes to make this gem run with ruby 1.9.2@p180 on Mac OS X 10.6.7. 
     The TRAP_* fixes are also necessary on Linux
Commits on Jun 12, 2011
  1. updated README with new contributor

    Tim Jarratt
    Tim Jarratt committed Jun 12, 2011
  2. Merge pull request #3 from ivmaykov/master

    tjarratt committed Jun 12, 2011
    Updates to pcap gem from Ilya Maykov. 
    
    This merge improves performance during capture and makes the gem work on any OS with ruby 1.9.*
Commits on Jun 10, 2011
  1. Fixed syntax error

    Ilya Maykov
    Ilya Maykov committed Jun 10, 2011
  2. Make the trap / don't trap decision at gem installation time, as it's…

    Ilya Maykov
    Ilya Maykov committed Jun 10, 2011
    … always based on RUBY_PLATFORM + RUBY_VERSION which are known at that time.
    
    Removed the shouldnt_trap argument from Pcap::Capture#dispatch and Pcap::Capture#loop, no longer needed.
    Cache the duplicated variable in Pcap::Pcaplet#each_packet so we don't compute it each time.
    And some minor code cleanup here and there.
Commits on Jun 7, 2011
  1. Updated README.

    Tim Jarratt
    Tim Jarratt committed Jun 7, 2011
  2. Only log "packets received / packets dropped" when a specific flag is…

    Tim Jarratt
    Tim Jarratt committed Jun 7, 2011
    … passed in.
Commits on Jun 4, 2011
Commits on Jun 2, 2011
  1. Destination and Source mac addresses are not in reverse order.

    Tim Jarratt
    Tim Jarratt committed Jun 2, 2011
    This commit fixes a bug introduced in 272f03f.
Commits on Jun 1, 2011
  1. Removing dead code.

    Tim Jarratt
    Tim Jarratt committed Jun 1, 2011
  2. Version bump to 0.7.5

    Tim Jarratt
    Tim Jarratt committed Jun 1, 2011
Commits on May 30, 2011
  1. Changed order of check for ignoring traps (sanity).

    Tim Jarratt
    Tim Jarratt committed May 30, 2011
    Should default to trapping on these calls and only avoid that when necessary (ie: lib has explicitly passed "ignore traps" into the capture_loop method.
  2. Fixes to make this gem run with ruby 1.9.2@p180 on Mac OS X 10.6.7.

    Tim Jarratt
    Tim Jarratt committed May 30, 2011
        rubysig.h is deprecated, but afaik, there isn't a better way of writing c extensions that doesn't involve FFI. There does not appear to be any changes to TRAP_BEG or TRAP_END in ruby 1.9, although that is where the problems stem from.
    
        The problem here is that calling TRAP_END after reading available packets on the file descriptor blocks forever -- sampling the process at this point shows that it's blocking on something that may never return.
    
        Another, smaller issue is that the wrapper around the c extension would catch any interrupt signals - this is not desirable for most processes. Perhaps there should be an optional flag to do this?
Commits on Feb 17, 2011
  1. Add support for recalculating the ip checksum.

    Andrew Hobson
    Andrew Hobson committed Feb 17, 2011
    Automatically do so if changing the source or dest IP
Commits on Feb 3, 2011
Commits on Dec 2, 2010
  1. Update for newest version of libpcap

    Andrew Hobson
    Andrew Hobson committed Dec 2, 2010
  2. Regenerated gemspec for version 0.7.2

    Andrew Hobson
    Andrew Hobson committed Dec 2, 2010
Commits on Sep 28, 2010
Commits on Jun 9, 2010
  1. Add an example of rewriting the time

    Andrew Hobson
    Andrew Hobson committed Jun 9, 2010
Commits on Jun 8, 2010
  1. Update readme to reflect gem

    Andrew Hobson
    Andrew Hobson committed Jun 8, 2010
Commits on Jun 7, 2010
  1. Fix assignment of packet timestamp and bump version

    Andrew Hobson
    Andrew Hobson committed Jun 7, 2010
Commits on Jun 6, 2009
  1. Convert to rubygem

    romanbsd committed Jun 6, 2009
Commits on May 26, 2009
  1. Allow modifying the src and dst IPs

    Andrew Hobson
    Andrew Hobson committed May 26, 2009
Commits on May 12, 2009
  1. Allow changing the time on a packet

    Andrew Hobson
    Andrew Hobson committed May 12, 2009
Commits on Dec 23, 2008
  1. Fix warning in 1.8.6.

    Andrew Hobson
    Andrew Hobson committed Dec 23, 2008
    Submitted-By: xHire
Commits on Nov 24, 2008
  1. Add support for dumping a raw packet

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008
  2. Tabs to spaces

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008
  3. Tabs to spaces

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008
  4. Apply patches from debian

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008
  5. Ignore generated files

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008
  6. Update doc for inject

    Andrew Hobson
    Andrew Hobson committed Nov 24, 2008