def ipv4_reassembly(packet, *, count=NotImplemented):
if '<STR_LIT>' in packet:<EOL><INDENT>ipv4 = packet['<STR_LIT>']<EOL>if ipv4.flags.DF:       <EOL><INDENT>return False, None<EOL><DEDENT>data = dict(<EOL>bufid=(<EOL>ipaddress.ip_address(ipv4.src),         <EOL>ipaddress.ip_address(ipv4.dst),         <EOL>ipv4.id,                                <EOL>TP_PROTO.get(ipv4.proto).name,          <EOL>),<EOL>num=count,                                  <EOL>fo=ipv4.frag,                               <EOL>ihl=ipv4.ihl,                               <EOL>mf=bool(ipv4.flags.MF),                     <EOL>tl=ipv4.len,                                <EOL>header=bytearray(ipv4.raw_packet_cache),    <EOL>payload=bytearray(bytes(ipv4.payload)),     <EOL>)<EOL>return True, data<EOL><DEDENT>return False, None<EOL>
Make data for IPv4 reassembly.