Skip to content

NetfilterQueue for Python 3.9 #71

@borisarloff

Description

@borisarloff

NetfilterQueue 0.8.1 does not compile for Python 3.9. CPython 3.9 had changes made, with one specific change impacting NFQ. Refer to Python Issue 37250 PyTypeObject.tp_print removed.

The following change removed PyTypeObject.tp_print and replaced it with PyTypeObject.tp_vectorcall_offset: commit aacc77fbd77640a8f03638216fa09372cc21673d

Accordingly, I have monkeypatched netfilterqueue.c to compile under Python 3.9. File is here attached.
netfilterqueue.txt

File renamed from .c to .txt for upload, please rename it back to .c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions