Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sshuttle/sshuttle
/ IPProtocol
Class
IPProtocol
sshuttle/methods/windivert.py:37–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
35
36
37
class
IPProtocol(IntEnum):
38
TCP = socket.IPPROTO_TCP
39
UDP = socket.IPPROTO_UDP
40
41
@property
42
def
filter(self):
43
return
"tcp"
if
self == IPProtocol.TCP
else
"udp"
44
45
46
class
IPFamily(IntEnum):
Callers
2
add
Method · 0.85
_unpack
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected