Merge pull request #19 from no2a/master

Remove unnecessary conversion of byte order for set_mark
This commit is contained in:
Matt Fox 2016-12-15 01:15:10 -08:00 committed by GitHub
commit 88808265d0
2 changed files with 2 additions and 2 deletions

View File

@ -2148,7 +2148,7 @@ static void __pyx_f_14netfilterqueue_6Packet_verdict(struct __pyx_obj_14netfilte
* self._qh,
* self.id,
*/
nfq_set_verdict2(__pyx_v_self->_qh, __pyx_v_self->id, __pyx_v_verdict, htonl(__pyx_v_self->_given_mark), __pyx_v_modified_payload_len, __pyx_v_modified_payload);
nfq_set_verdict2(__pyx_v_self->_qh, __pyx_v_self->id, __pyx_v_verdict, __pyx_v_self->_given_mark, __pyx_v_modified_payload_len, __pyx_v_modified_payload);
/* "netfilterqueue.pyx":82
* modified_payload_len = len(self._given_payload)

View File

@ -84,7 +84,7 @@ cdef class Packet:
self._qh,
self.id,
verdict,
htonl(self._given_mark),
self._given_mark,
modified_payload_len,
modified_payload)
else: