AD_TYPE_FIELD_TYPE_MASK
if ((container->ad_type & AD_TYPE_FIELD_TYPE_MASK) != type)
ad_datum.ad_type = type & AD_TYPE_FIELD_TYPE_MASK;