MCPcopy
hub / github.com/sshuttle/sshuttle / family_to_string

Function family_to_string

sshuttle/helpers.py:182–188  ·  view source on GitHub ↗
(family)

Source from the content-addressed store, hash-verified

180
181
182def family_to_string(family):
183 if family == socket.AF_INET6:
184 return "AF_INET6"
185 elif family == socket.AF_INET:
186 return "AF_INET"
187 else:
188 return str(family)
189
190
191def get_env():

Callers 11

ipt_chain_existsFunction · 0.90
iptFunction · 0.90
nftFunction · 0.90
setup_firewallMethod · 0.90
restore_firewallMethod · 0.90
setup_firewallMethod · 0.90
restore_firewallMethod · 0.90
setup_firewallMethod · 0.90
restore_firewallMethod · 0.90
setup_firewallMethod · 0.90
restore_firewallMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected