Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ From source

To install from source::

wget https://pypi.python.org/packages/94/5b/83d10952c1312fe056f8f2f524a4a59fdc9d56b84a67cae1ed779e2da50b/NetfilterQueue-0.8.tar.gz#md5=8e78db992ad3a73dd86fef05293fff65
tar -xvzf NetfilterQueue-0.8.tar.gz
cd NetfilterQueue-0.8
git clone git@github.com:kti/python-netfilterqueue.git
cd python-netfilterqueue
python setup.py install

If Cython is installed, Distutils will use it to regenerate the .c source from the .pyx. It will then compile the .c into a .so.
Expand Down
3 changes: 3 additions & 0 deletions examples/print_and_accept.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

def print_and_accept(pkt):
print(pkt)
hw = pkt.get_hw()
if hw:
print(":".join("{:02x}".format(ord(c)) for c in hw[0:6]))
pkt.accept()

nfqueue = NetfilterQueue()
Expand Down
Loading