Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .travis/pylibpcap.rb

This file was deleted.

24 changes: 14 additions & 10 deletions doc/scapy/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ Here are the topics involved and some examples that you can use to try if your i
Platform-specific instructions
==============================

As a general rule (except on Windows), you can toggle the **libpcap** integration
at any time, using::

from scapy.config import conf
conf.use_pcap = True

Linux native
------------

Expand Down Expand Up @@ -213,9 +219,10 @@ All dependencies may be installed either via the platform-specific installer, or
Mac OS X
--------

On Mac OS X, Scapy does not work natively. You need to install Python bindings
to use libdnet and libpcap. You can choose to install using either Homebrew or
MacPorts. They both work fine, yet Homebrew is used to run unit tests with
On Mac OS X, Scapy **DOES work natively** since the recent versions.
However, you may want to make Scapy use libdnet and libpcap.
You can choose to install using either Homebrew or MacPorts. They both
work fine, yet Homebrew is used to run unit tests with
`Travis CI <https://travis-ci.org>`_.


Expand All @@ -233,6 +240,9 @@ Install using Homebrew
$ sudo brew install --with-python libdnet
$ sudo brew install https://raw.githubusercontent.com/secdev/scapy/master/.travis/pylibpcap.rb

In Scapy::

conf.use_pcap = True

Install using MacPorts
^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -249,18 +259,12 @@ Install using MacPorts
OpenBSD
-------

In a similar manner, to install Scapy on OpenBSD 5.9+, you will need to install the libpcap/libdnet bindings:
In a similar manner, to install Scapy on OpenBSD 5.9+, you **may** want to install the libpcap/libdnet bindings:

.. code-block:: text

$ doas pkg_add py-libpcap py-libdnet tcpdump

An OpenBSD install may be lacking the ``/etc/ethertypes`` file. You may install it with

.. code-block:: text

# wget http://git.netfilter.org/ebtables/plain/ethertypes -O /etc/ethertypes

Then install Scapy via ``pip`` or ``pkg_add`` (bundled under ``python-scapy``)
All dependencies may be installed either via the platform-specific installer, or via PyPI. See `Optional Dependencies <#optional-dependencies>`_ for more information.

Expand Down
Loading