metasploit-framework/external/pcaprub
Tod Beardsley daf5465bbd Whitespace Cleanup 2012-12-27 09:08:40 -06:00
..
LICENSE Shiny new packet capture library 2007-10-08 23:16:31 +00:00
README pcaprub : -add several native function to get all the informations about the network intefaces, original code is a python c extension called netifaces 2011-06-01 17:22:48 +00:00
extconf.rb Whitespace Cleanup 2012-12-27 09:08:40 -06:00
netifaces.c remove some comments 2011-08-24 20:37:27 +00:00
netifaces.h pcaprub : 2011-08-24 20:27:55 +00:00
pcaprub.c Merge in a PCAP_NETMASK_UNKNOWN condition define to build with pcap 1.0.0. See https://github.com/shadowbq/pcaprub/issues/8 2011-11-25 15:46:58 -06:00
test_pcaprub.rb Fix up check for IPv6 constant, some minor grammar typos 2011-06-02 00:29:28 +00:00

README

This goal of this project is to provide a consistent interface to LBL's libpcap
packet capture library. This project was created because the currently
available ruby-pcap library is poorly designed and has been unmaintained since
2000. This does not provide packet processing functionality, it simply provides
the interface for capturing packets. For packet processing capability, see the
PacketRub project (http://packetrub.rubyforge.org).

Requirements:
  libpcap - http://www.tcpdump.org

Build & Install:
  ruby extconf.rb && make && make install

The latest version can be obtained from Subversion:
  svn checkout http://pcaprub.rubyforge.org/svn/trunk/

The Metasploit Project also provides a Subversion repository:
  svn checkout http://metasploit.com/svn/framework3/trunk/external/pcaprub/

The Metasploit Project also added some code from the python netifaces c extension

Original c/python netifaces code is under MIT-style license.  
Here goes:

Copyright (c) 2007, 2008 Alastair Houghton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.