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

Method __init__

impacket/nmb.py:336–343  ·  view source on GitHub ↗
(self, data = 0)

Source from the content-addressed store, hash-verified

334
335class NBPositiveNameQueryResponse(NBNSResourceRecord):
336 def __init__(self, data = 0):
337 NBNSResourceRecord.__init__(self, data)
338 self.entries = [ ]
339 rdata = self['RDATA']
340 while len(rdata) > 0:
341 entry = ADDR_ENTRY(rdata)
342 rdata = rdata[len(entry):]
343 self.entries.append(socket.inet_ntoa(entry['NB_ADDRESS']))
344
345# 4.2.1. GENERAL FORMAT OF NAME SERVICE PACKETS
346class NAME_SERVICE_PACKET(Structure):

Callers

nothing calls this directly

Calls 3

ADDR_ENTRYClass · 0.85
appendMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected