Commit 51eb7862 authored by Brian May's avatar Brian May

Fix tests under PyPy.

parent 75b6865a
...@@ -112,7 +112,7 @@ def pf_query_nat(family, proto, src_ip, src_port, dst_ip, dst_port): ...@@ -112,7 +112,7 @@ def pf_query_nat(family, proto, src_ip, src_port, dst_ip, dst_port):
c_char * sizeof(pnl)).from_address(addressof(pnl))) c_char * sizeof(pnl)).from_address(addressof(pnl)))
ip = socket.inet_ntop( ip = socket.inet_ntop(
pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr))) pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr)).raw)
port = socket.ntohs(pnl.rdxport.port) port = socket.ntohs(pnl.rdxport.port)
return (ip, port) return (ip, port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment