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

Method decode

impacket/ImpactDecoder.py:223–233  ·  view source on GitHub ↗
(self, buffer)

Source from the content-addressed store, hash-verified

221 pass
222
223 def decode(self, buffer):
224 destination_options = IP6_Extension_Headers.Destination_Options(buffer)
225 self.set_decoded_protocol(destination_options)
226 start_pos = destination_options.get_header_size()
227 contained_protocol = destination_options.get_next_header()
228
229 multi_protocol_decoder = IP6MultiProtocolDecoder(contained_protocol)
230 child_packet = multi_protocol_decoder.decode(buffer[start_pos:])
231
232 destination_options.contains(child_packet)
233 return destination_options
234
235class RoutingOptionsDecoder(Decoder):
236 def __init__(self):

Calls 6

decodeMethod · 0.95
set_decoded_protocolMethod · 0.80
get_header_sizeMethod · 0.45
get_next_headerMethod · 0.45
containsMethod · 0.45