Skip to content

Commit b0ccf8d

Browse files
committed
Remove unnecessary conversion of byte order for set_mark
As nfq_set_verdict2 coverts byte order of "mark" (unlike nfq_set_verdict_mark), we have not to do it on our own. Otherwise, for example, Packet.set_mark(0x1234) results in 0x34120000 on little-endian machines.
1 parent adb2545 commit b0ccf8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netfilterqueue.c

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netfilterqueue.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ cdef class Packet:
8484
self._qh,
8585
self.id,
8686
verdict,
87-
htonl(self._given_mark),
87+
self._given_mark,
8888
modified_payload_len,
8989
modified_payload)
9090
else:

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