MCPcopy Create free account
hub / github.com/secdev/scapy / StrEnumField

Class StrEnumField

scapy/fields.py:1515–1527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513
1514
1515class StrEnumField(_StrEnumField, StrField):
1516 __slots__ = ["enum"]
1517
1518 def __init__(
1519 self,
1520 name, # type: str
1521 default, # type: bytes
1522 enum=None, # type: Optional[Dict[str, str]]
1523 **kwargs # type: Any
1524 ):
1525 # type: (...) -> None
1526 StrField.__init__(self, name, default, **kwargs) # type: ignore
1527 self.enum = enum
1528
1529
1530K = TypeVar('K', List[BasePacket], BasePacket, Optional[BasePacket])

Callers 1

BOOTPClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…