received_packet() renamed to handle_packet()