MCPcopy Create free account
hub / github.com/sshuttle/sshuttle / pf_get_dev

Function pf_get_dev

sshuttle/methods/pf.py:405–410  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

403
404
405def pf_get_dev():
406 global _pf_fd
407 if _pf_fd is None:
408 _pf_fd = os.open('/dev/pf', os.O_RDWR)
409
410 return _pf_fd
411
412
413def pf_get_anchor(family, port):

Callers 3

query_natMethod · 0.85
_add_anchor_ruleMethod · 0.85
_add_anchor_ruleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected