Skip to content

Commit

Permalink
Merge pull request #45 from nuald/master
Browse files Browse the repository at this point in the history
Additional Windows notes have been added
  • Loading branch information
hellais committed Apr 9, 2017
2 parents 548cf7a + 87784b6 commit da7a233
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
23 changes: 18 additions & 5 deletions README.rst
Expand Up @@ -15,6 +15,19 @@ Example use:
... print ts, '\tSRC', addr(pkt, sniffer.dloff + 12), '\tDST', addr(pkt, sniffer.dloff + 16)
...


Windows notes
-------------

WinPcap has compatibility issues with Windows 10, therefore
it's recommended to use `Npcap <https://nmap.org/npcap/>`_
(Nmap's packet sniffing library for Windows, based on the WinPcap/Libpcap libraries, but with improved speed, portability, security, and efficiency). Please enable WinPcap API-compatible mode during the library installation.

The sample installation using `Chocolatey <https://chocolatey.org/>`_::

choco install -y npcap --ia '/winpcap_mode=yes'


Installation
------------

Expand All @@ -36,13 +49,13 @@ Please clone the sources and run::

python setup.py install

Note for Windows users: WinPcap doesn't provide the development package, therefore
the additional actions are required.
Please download the latest compiled library from https://github.com/patmarion/winpcap
and put it into the sibling directory as ``wpdpack`` (``setup.py`` will discover it)::
Note for Windows users: Please download the `WinPcap Developer's Pack <https://www.winpcap.org/devel.htm>`_, unpack the archive and put it into the sibling directory as ``wpdpack`` (``setup.py`` will discover it).

Sample procedure in PowerShell::

cd ..
git clone https://github.com/patmarion/winpcap.git wpdpack
wget -usebasicparsing -outfile WpdPack_4_1_2.zip http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
unzip WpdPack_4_1_2.zip
cd pypcap
python setup.py install

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -68,7 +68,7 @@ def __getattr__(cls, name):

# -- Options for HTML output --------------------------------------------------
html_theme = 'default'
html_static_path = ['_static']
html_static_path = []

html_use_modindex = True
html_use_index = True
Expand Down
22 changes: 17 additions & 5 deletions docs/index.rst
Expand Up @@ -14,6 +14,18 @@ Example use:
...


Windows notes
-------------

WinPcap has compatibility issues with Windows 10, therefore
it's recommended to use `Npcap <https://nmap.org/npcap/>`_
(Nmap's packet sniffing library for Windows, based on the WinPcap/Libpcap libraries, but with improved speed, portability, security, and efficiency). Please enable WinPcap API-compatible mode during the library installation.

The sample installation using `Chocolatey <https://chocolatey.org/>`_::

choco install -y npcap --ia '/winpcap_mode=yes'


Installation
------------

Expand All @@ -36,13 +48,13 @@ Please clone the sources and run::

python setup.py install

Note for Windows users: WinPcap doesn't provide the development package, therefore
the additional actions are required.
Please download the latest compiled library from https://github.com/patmarion/winpcap
and put it into the sibling directory as ``wpdpack`` (``setup.py`` will discover it)::
Note for Windows users: Please download the `WinPcap Developer's Pack <https://www.winpcap.org/devel.htm>`_, unpack the archive and put it into the sibling directory as ``wpdpack`` (``setup.py`` will discover it).

Sample procedure in PowerShell::

cd ..
git clone https://github.com/patmarion/winpcap.git wpdpack
wget -usebasicparsing -outfile WpdPack_4_1_2.zip http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
unzip WpdPack_4_1_2.zip
cd pypcap
python setup.py install

Expand Down

0 comments on commit da7a233

Please sign in to comment.