MCPcopy
hub / github.com/fortra/impacket / __str__

Method __str__

impacket/ImpactPacket.py:765–773  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

763 return "Unknown"
764
765 def __str__(self):
766 ss = []
767 alen = self.get_addr_len()
768 addr = hexlify(self.get_addr()[0:alen])
769 ss.append("Linux SLL: addr=%s type=`%s'" % (addr, self.get_type_desc()))
770 if self.child():
771 ss.append(str(self.child()))
772
773 return '\n'.join(ss)
774
775
776class IP(Header):

Callers

nothing calls this directly

Calls 5

get_addr_lenMethod · 0.95
get_addrMethod · 0.95
get_type_descMethod · 0.95
appendMethod · 0.80
childMethod · 0.45

Tested by

no test coverage detected