def ipv6_reassembly(packet, *, count=NotImplemented):
if scapy_all is None:<EOL><INDENT>raise ModuleNotFound("<STR_LIT>", name='<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' in packet:<EOL><INDENT>ipv6 = packet['<STR_LIT>']<EOL>if scapy_all.IPv6ExtHdrFragment not in ipv6:  <EOL><INDENT>return False, None                      <EOL><DEDENT>ipv6_frag = ipv6['<STR_LIT>']<EOL>data = dict(<EOL>bufid=(<EOL>ipaddress.ip_address(ipv6.src),                 <EOL>ipaddress.ip_address(ipv6.dst),                 <EOL>ipv6.fl,                                        <EOL>TP_PROTO.get(ipv6_frag.nh).name,                <EOL>),<EOL>num=count,                                          <EOL>fo=ipv6_frag.offset,                                <EOL>ihl=len(ipv6) - len(ipv6_frag),                     <EOL>mf=bool(ipv6_frag.m),                               <EOL>tl=len(ipv6),                                       <EOL>header=bytearray(bytes(ipv6)[:-len(ipv6_frag)]),    <EOL>payload=bytearray(bytes(ipv6_frag.payload)),        <EOL>)<EOL>return True, data<EOL><DEDENT>return False, None<EOL>
Make data for IPv6 reassembly.