MCPcopy Index your code
hub / github.com/secdev/scapy / StrFixedLenEnumField

Class StrFixedLenEnumField

scapy/fields.py:1912–1925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1910
1911
1912class StrFixedLenEnumField(_StrEnumField, StrFixedLenField):
1913 __slots__ = ["enum"]
1914
1915 def __init__(
1916 self,
1917 name, # type: str
1918 default, # type: bytes
1919 enum=None, # type: Optional[Dict[str, str]]
1920 length=None, # type: Optional[int]
1921 length_from=None # type: Optional[Callable[[Optional[Packet]], int]] # noqa: E501
1922 ):
1923 # type: (...) -> None
1924 StrFixedLenField.__init__(self, name, default, length=length, length_from=length_from) # noqa: E501
1925 self.enum = enum
1926
1927
1928class NetBIOSNameField(StrFixedLenField):

Callers 2

NTPHeaderClass · 0.90
KRB_InnerTokenClass · 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…