$packet->get_endpoint() now returns int