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

Method decode

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

Source from the content-addressed store, hash-verified

237 pass
238
239 def decode(self, buffer):
240 routing_options = IP6_Extension_Headers.Routing_Options(buffer)
241 self.set_decoded_protocol(routing_options)
242 start_pos = routing_options.get_header_size()
243 contained_protocol = routing_options.get_next_header()
244
245 multi_protocol_decoder = IP6MultiProtocolDecoder(contained_protocol)
246 child_packet = multi_protocol_decoder.decode(buffer[start_pos:])
247
248 routing_options.contains(child_packet)
249 return routing_options
250
251class ICMP6Decoder(Decoder):
252 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

Tested by 1