moved Ethernet type check to check_packet_type()