def ipv4_reassembly(frame):
if '<STR_LIT>' in frame:<EOL><INDENT>ipv4 = frame['<STR_LIT>'].info<EOL>if ipv4.flags.df:       <EOL><INDENT>return False, None<EOL><DEDENT>data = dict(<EOL>bufid=(<EOL>ipv4.src,                                   <EOL>ipv4.dst,                                   <EOL>ipv4.id,                                    <EOL>ipv4.proto.name,                            <EOL>),<EOL>num=frame.info.number,                          <EOL>fo=ipv4.frag_offset,                            <EOL>ihl=ipv4.hdr_len,                               <EOL>mf=ipv4.flags.mf,                               <EOL>tl=ipv4.len,                                    <EOL>header=bytearray(ipv4.packet.header),           <EOL>payload=bytearray(ipv4.packet.payload or b'<STR_LIT>'),  <EOL>)<EOL>return True, data<EOL><DEDENT>return False, None<EOL>
Make data for IPv4 reassembly.