def ipv6_reassembly(packet, *, count=NotImplemented):
ipv6 = getattr(packet, '<STR_LIT>', None)<EOL>if ipv6 is not None:<EOL><INDENT>ipv6_frag = ipv6.extension_hdrs.get(<NUM_LIT>)<EOL>if ipv6_frag is None:       <EOL><INDENT>return False, None<EOL><DEDENT>hdr_len = ipv6_hdr_len(ipv6)<EOL>data = dict(<EOL>bufid=(<EOL>ipaddress.ip_address(ipv6.src),                     <EOL>ipaddress.ip_address(ipv6.dst),                     <EOL>ipv6.flow,                                          <EOL>TP_PROTO.get(ipv6_frag.nh).name,                    <EOL>),<EOL>num=count,                                              <EOL>fo=ipv6_frag.nxt,                                       <EOL>ihl=hdr_len,                                            <EOL>mf=bool(ipv6_frag.m_flag),                              <EOL>tl=len(ipv6),                                           <EOL>header=bytearray(ipv6.pack()[:hdr_len]),                <EOL>payload=bytearray(ipv6.pack()[hdr_len+ipv6_frag:]),     <EOL>)<EOL>return True, data<EOL><DEDENT>return False, None<EOL>
Make data for IPv6 reassembly.