Skip to content

Fails when doing the callback with COPY_META #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jllorente opened this issue Dec 18, 2016 · 1 comment · Fixed by #77
Closed

Fails when doing the callback with COPY_META #23

jllorente opened this issue Dec 18, 2016 · 1 comment · Fixed by #77

Comments

@jllorente
Copy link

Hi,
I am trying to bind to an NFQUEUE configured with COPY_META only, as I only intend to retrieve the packet mark. I would think that maybe when a Packet() is created, we should indicate the operation mode of the queue somehow...

I'm using the latest version of the code :)

Exception ignored in: 'netfilterqueue.global_callback'
Traceback (most recent call last):
  File "netfilterqueue.pyx", line 69, in netfilterqueue.Packet.set_nfq_data (netfilterqueue.c:2193)
OSError: Failed to get payload of packet.
@jllorente jllorente changed the title Failed to receive packet with COPY_META Fails when doing the callback with COPY_META Dec 18, 2016
@strictlymike
Copy link

Bump. I saw this too, last night, after updating my local copy. I think it's an important one because a lot of users might be able to get around the static buffer size by just copying/modifying/updating headers, but because this doesn't work, some users will need to modify the pyx file and recompile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants