oremanj / python-netfilterqueue

Python bindings for libnetfilter_queue
MIT License
250 stars 96 forks source link

COPY* constants are WRONG! #6

Closed socketpair closed 8 years ago

socketpair commented 9 years ago
COPY_NONE = 1
COPY_META = 2
COPY_PACKET = 3

it should be

COPY_NONE = 0
COPY_META = 1
COPY_PACKET = 2

Tests? no, did not hear...

K-Yo commented 8 years ago

src : https://git.netfilter.org/libnetfilter_queue/tree/include/libnetfilter_queue/linux_nfnetlink_queue.h#n82

socketpair commented 8 years ago

C enums starts with zero (!) http://stackoverflow.com/questions/6434105/are-default-enum-values-in-c-the-same-for-all-compilers