MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / ipfw

Function ipfw

sshuttle/methods/ipfw.py:99–105  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

97
98
99def ipfw(*args):
100 argv = ['ipfw', '-q'] + list(args)
101 debug1('>> %s' % ' '.join(argv))
102 rv = ssubprocess.call(argv, env=get_env())
103 # No env: No output. (Or error that won't be parsed.)
104 if rv:
105 raise Fatal('%r returned %d' % (argv, rv))
106
107
108def ipfw_noexit(*args):

Callers 1

setup_firewallMethod · 0.85

Calls 3

debug1Function · 0.90
get_envFunction · 0.90
FatalClass · 0.90

Tested by

no test coverage detected