def _import_next_layer(self, proto, length):
if length == <NUM_LIT:0>:<EOL><INDENT>from pcapkit.protocols.null import NoPayload as Protocol<EOL><DEDENT>elif self._sigterm:<EOL><INDENT>from pcapkit.protocols.raw import Raw as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.link.arp import ARP as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.link.rarp import RARP as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.link.vlan import VLAN as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.internet.ipv4 import IPv4 as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.internet.ipv6 import IPv6 as Protocol<EOL><DEDENT>elif proto == <NUM_LIT>:<EOL><INDENT>from pcapkit.protocols.internet.ipx import IPX as Protocol<EOL><DEDENT>else:<EOL><INDENT>from pcapkit.protocols.raw import Raw as Protocol<EOL><DEDENT>next_ = Protocol(self._file, length, error=self._onerror,<EOL>layer=self._exlayer, protocol=self._exproto)<EOL>return next_<EOL>
Import next layer extractor.

        Positional arguments:
            * proto -- str, next layer protocol name
            * length -- int, valid (not padding) length

        Returns:
            * bool -- flag if extraction of next layer succeeded
            * Info -- info of next layer
            * ProtoChain -- protocol chain of next layer
            * str -- alias of next layer

        Protocols:
            * ARP -- data link layer
            * RARP -- data link layer
            * VLAN -- data link layer
            * IPv4 -- internet layer
            * IPv6 -- internet layer
            * IPX -- internet layer