def payload_type(ethertype):
if ethertype == <NUM_LIT>:<EOL><INDENT>from pcapfile.protocols.network.ip import IP<EOL>return (IP, '<STR_LIT>')<EOL>
Returns the appropriate payload constructor based on the supplied
EtherType.