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

Class UDPDecoder

impacket/ImpactDecoder.py:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 return arp
278
279class UDPDecoder(Decoder):
280 def __init__(self):
281 pass
282
283 def decode(self, aBuffer):
284 u = ImpactPacket.UDP(aBuffer)
285 self.set_decoded_protocol( u )
286 off = u.get_header_size()
287 self.data_decoder = DataDecoder()
288 packet = self.data_decoder.decode(aBuffer[off:])
289 u.contains(packet)
290 return u
291
292class TCPDecoder(Decoder):
293 def __init__(self):

Callers 3

decodeMethod · 0.85
decodeMethod · 0.85
decodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…