def _scapy_read_frame(self):
from pcapkit.toolkit.scapy import (ipv4_reassembly, ipv6_reassembly,<EOL>packet2chain, packet2dict, tcp_reassembly,<EOL>tcp_traceflow)<EOL>packet = next(self._extmp)<EOL>self._frnum += <NUM_LIT:1><EOL>self._proto = packet2chain(packet)<EOL>if self._flag_v:<EOL><INDENT>print(f'<STR_LIT>')<EOL><DEDENT>frnum = f'<STR_LIT>'<EOL>if not self._flag_q:<EOL><INDENT>info = packet2dict(packet)<EOL>if self._flag_f:<EOL><INDENT>ofile = self._ofile(f'<STR_LIT>')<EOL>ofile(info, name=frnum)<EOL><DEDENT>else:<EOL><INDENT>self._ofile(info, name=frnum)<EOL><DEDENT><DEDENT>if self._flag_d:<EOL><INDENT>self._frame.append(packet)<EOL><DEDENT>if self._ipv4:<EOL><INDENT>flag, data = ipv4_reassembly(packet, count=self._frnum)<EOL>if flag:<EOL><INDENT>self._reasm[<NUM_LIT:0>](data)  <EOL><DEDENT><DEDENT>if self._ipv6:<EOL><INDENT>flag, data = ipv6_reassembly(packet, count=self._frnum)<EOL>if flag:<EOL><INDENT>self._reasm[<NUM_LIT:1>](data)  <EOL><DEDENT><DEDENT>if self._tcp:<EOL><INDENT>flag, data = tcp_reassembly(packet, count=self._frnum)<EOL>if flag:<EOL><INDENT>self._reasm[<NUM_LIT:2>](data)  <EOL><DEDENT><DEDENT>if self._flag_t:<EOL><INDENT>flag, data = tcp_traceflow(packet, count=self._frnum)<EOL>if flag:<EOL><INDENT>self._trace(data)<EOL><DEDENT><DEDENT>return packet<EOL>
Read frames with Scapy.