Skip to content

Commit 75c9f56

Browse files
committed
Bring README up to date with 0.6.0
1 parent 53a55fd commit 75c9f56

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ it. ::
1717
from netfilterqueue import NetfilterQueue
1818
1919
def print_and_accept(pkt):
20-
print pkt
20+
print(pkt)
2121
pkt.accept()
2222
2323
nfqueue = NetfilterQueue()
@@ -107,18 +107,27 @@ Objects of this type are passed to your callback.
107107
``Packet.get_payload()``
108108
Return the packet's payload as a string.
109109

110+
``Packet.set_payload(payload)``
111+
Set the packet payload. ``payload`` is bytes.
112+
110113
``Packet.get_payload_len()``
111114
Return the size of the payload.
112115

113116
``Packet.set_mark(mark)``
114117
Give the packet a kernel mark. ``mark`` is a 32-bit number.
115118

119+
``Packet.get_mark()``
120+
Get the mark already on the packet.
121+
116122
``Packet.accept()``
117123
Accept the packet.
118124

119125
``Packet.drop()``
120126
Drop the packet.
121-
127+
128+
``Packet.repeat()``
129+
Iterate the same cycle once more.
130+
122131
Callback objects
123132
----------------
124133

@@ -182,7 +191,6 @@ More details coming soon...
182191
change ``DEF BufferSize = 4096`` in ``netfilterqueue.pyx``, and rebuild.
183192
* Full libnetfilter_queue API is not yet implemented:
184193

185-
* Omits ``packet.set_payload()`` for altering packet data
186194
* Omits methods for getting information about the interface a packet has
187195
arrived on or is leaving on
188196
* Probably other stuff is omitted too

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy