The name of this function seems to suggest that this function records the current ASN. The description and code show that it doesn't do that. Please rename this function.