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

Class IP6Decoder

impacket/ImpactDecoder.py:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 return packet
185
186class IP6Decoder(Decoder):
187 def __init__(self):
188 pass
189
190 def decode(self, buffer):
191 ip6_packet = IP6.IP6(buffer)
192 self.set_decoded_protocol(ip6_packet)
193 start_pos = ip6_packet.get_header_size()
194 end_pos = ip6_packet.get_payload_length() + start_pos
195 contained_protocol = ip6_packet.get_next_header()
196
197 multi_protocol_decoder = IP6MultiProtocolDecoder(contained_protocol)
198 child_packet = multi_protocol_decoder.decode(buffer[start_pos:end_pos])
199
200 ip6_packet.contains(child_packet)
201 return ip6_packet
202
203class HopByHopDecoder(Decoder):
204 def __init__(self):

Callers 1

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…