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

Method _check_uuid_fmt

scapy/fields.py:3835–3840  ·  view source on GitHub ↗

Checks .uuid_fmt, and raises an exception if it is not valid.

(self)

Source from the content-addressed store, hash-verified

3833 Field.__init__(self, name, default, "16s")
3834
3835 def _check_uuid_fmt(self):
3836 # type: () -> None
3837 """Checks .uuid_fmt, and raises an exception if it is not valid."""
3838 if self.uuid_fmt not in UUIDField.FORMATS:
3839 raise FieldValueRangeException(
3840 "Unsupported uuid_fmt ({})".format(self.uuid_fmt))
3841
3842 def i2m(self, pkt, x):
3843 # type: (Optional[Packet], Optional[UUID]) -> bytes

Callers 3

__init__Method · 0.95
i2mMethod · 0.95
m2iMethod · 0.95

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected