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

Class LLTDAttributeMachineName

scapy/layers/lltd.py:710–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708
709@_register_lltd_specific_class(15)
710class LLTDAttributeMachineName(LLTDAttribute):
711 name = "LLTD Attribute - Machine Name"
712 fields_desc = [
713 FieldLenField("len", None, length_of="hostname", fmt="B"),
714 StrLenFieldUtf16("hostname", "", length_from=lambda pkt: pkt.len),
715 ]
716
717 def mysummary(self):
718 return (f"Hostname: {self.hostname!r}",
719 [LLTD, LLTDAttributeHostID])
720
721
722@_register_lltd_specific_class(18)

Callers

nothing calls this directly

Calls 2

FieldLenFieldClass · 0.90
StrLenFieldUtf16Class · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…