Skip to content

Commit db750b7

Browse files
authored
Merge pull request oremanj#26 from kti/25-Crash-in-iptables-OUTPUT-chain
25 crash in iptables output chain
2 parents 6218f3b + 496694a commit db750b7

File tree

5 files changed

+511
-475
lines changed

5 files changed

+511
-475
lines changed

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ From source
8181

8282
To install from source::
8383

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

8988
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.

examples/print_and_accept.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

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

811
nfqueue = NetfilterQueue()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy