3.1.5.5.1.2 Completing a Route Entry Cache Addition
The following processing MUST be done when the AUTHORITY_BUFFER message is acknowledging an INQUIRE message sent while adding a route entry to the cache:
Check the Pending Route Entry Add List. If an entry is not found that has an InquireMessageId corresponding to the Acked MessageID of the AUTHORITY message, silently discard the AUTHORITY message. Otherwise, continue processing as follows.
If the AUTHORITY_BUFFER message has the N flag set (indicating that the key in the route entry is not currently registered on that node), then the Route Entry MUST be removed from the Pending Route Entry Add List.
If the entry's NeedCpa flag is not set, the check for whether the entry is reachable is complete and the entry SHOULD be stored in the cache. The processing of the Route Entry is complete. Otherwise, continue processing as follows.
If a CPA is requested but one is not included in the AUTHORITY_BUFFER message, the Route Entry MUST be silently discarded.
The node MUST validate the CPA by passing the AUTHORITY_BUFFER to the SecurityModule. If it fails to validate, or if a required Credential is not received, the Route Entry MUST be silently discarded.
The key in the Route Entry MUST be compared against the key of the CPA, and the addresses in the Route Entry MUST be compared against the service addresses in the CPA. If they do not match, the Route Entry MUST be silently discarded.
Add the Route Entry to the Route Entry Cache.