MCPcopy 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
37class 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
46class IPFamily(IntEnum):

Callers 2

addMethod · 0.85
_unpackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected