Skip to content

Commit 28ec376

Browse files
author
Matt Fox
committed
Merge branch 'master' of github.com:kti/python-netfilterqueue
Conflicts: README.rst
2 parents be8ddc6 + f4f0828 commit 28ec376

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ NetfilterQueue
55
NetfilterQueue provides access to packets matched by an iptables rule in
66
Linux. Packets so matched can be accepted, dropped, altered, or given a mark.
77

8-
Libnetfilter_queue (the netfilter library, not this module) is part of the `Netfilter project <http://netfilter.org/projects/libnetfilter_queue/>`_.
8+
Libnetfilter_queue (the netfilter library, not this module) is part of the
9+
`Netfilter project <http://netfilter.org/projects/libnetfilter_queue/>`_.
910

1011
Example
1112
=======
1213

13-
The following script prints a short description of each packet before accepting it. ::
14+
The following script prints a short description of each packet before accepting
15+
it. ::
1416

1517
from netfilterqueue import NetfilterQueue
1618
@@ -32,7 +34,8 @@ To send packets destined for your LAN to the script, type something like::
3234
Installation
3335
============
3436

35-
NetfilterQueue is a C extention module that links against libnetfilter_queue. Before installing, ensure you have:
37+
NetfilterQueue is a C extention module that links against libnetfilter_queue.
38+
Before installing, ensure you have:
3639

3740
1. A C compiler
3841

@@ -71,7 +74,8 @@ API
7174
``NetfilterQueue.COPY_META``
7275

7376
``NetfilterQueue.COPY_PACKET``
74-
These constants specify how much of the packet should be given to the script- nothing, metadata, or the whole packet.
77+
These constants specify how much of the packet should be given to the
78+
script- nothing, metadata, or the whole packet.
7579

7680
NetfilterQueue objects
7781
----------------------
@@ -184,8 +188,8 @@ More details coming soon...
184188
* Probably other stuff is omitted too
185189

186190
* When a packet has been marked, we use nfq_set_verdict_mark rather than
187-
nfq_set_verdict2. Apparently nfq_set_verdict_mark
188-
`is broken <http://netfilter.org/projects/libnetfilter_queue/doxygen/group__Queue.html#ga1986d6387c5aa2a837c02e87ae3b45ff>`_,
191+
nfq_set_verdict2. Apparently nfq_set_verdict_mark is
192+
`broken <http://netfilter.org/projects/libnetfilter_queue/doxygen/group__Queue.html#ga1986d6387c5aa2a837c02e87ae3b45ff>`_,
189193
although it works for me.
190194

191195
Source
@@ -199,3 +203,4 @@ License
199203
Copyright (c) 2011, Kerkhoff Technologies, Inc.
200204

201205
`MIT licensed <https://github.com/kti/python-netfilterqueue/blob/master/LICENSE.txt>`_
206+

0 commit comments

Comments
 (0)