Else, if the Label-stack-depth is 0 and the Target FEC Stack sub-TLV at FEC stack-depth is 38 (PeerAdj SID sub-TLV), { Set the Best-return-code to 10, "Mapping for this FEC is not the given label at stack-depth " [RFC8029]. Check if any below conditions fail: - Validate that the receiving node's BGP Local AS matches with the remote AS field in the received PeerAdj SID sub-TLV. - Validate that the receiving node's BGP Router-ID matches with the Remote Router ID field in the received PeerAdj SID sub-TLV. - Validate that there is an EBGP session with a peer having a local AS number and BGP Router-ID as specified in the local AS number and Local Router-ID field in the received PeerAdj SID sub-TLV. If the remote interface address is not zero, validate the incoming interface. Set the Best-return-code to 35, "Mapping for this FEC is not associated with the incoming interface" [RFC8287]. Check if any below conditions fail: - Validate that the incoming interface on which the OAM packet was received matches with the remote interface specified in the PeerAdj SID sub-TLV. If all above validations have passed, set the return code to 3, "Replying router is an egress for the FEC at stack-depth " [RFC8029]. } Else, if the Target FEC Stack sub-TLV at FEC stack-depth is 39 (PeerNode SID sub-TLV), { Set the Best-return-code to 10, "Mapping for this FEC is not the given label at stack-depth " [RFC8029]. Check if any below conditions fail: - Validate that the receiving node's BGP Local AS matches with the remote AS field in the received PeerNode SID FEC sub-TLV. - Validate that the receiving node's BGP Router-ID matches with the Remote Router ID field in the received PeerNode SID FEC. - Validate that there is an EBGP session with a peer having a local AS number and BGP Router-ID as specified in the local AS number and Local Router-ID field in the received PeerNode SID FEC sub-TLV. If all above validations have passed, set the return code to 3, "Replying router is an egress for the FEC at stack-depth " [RFC8029]. } Else, if the Target FEC Stack sub-TLV at FEC stack-depth is 40 (PeerSet SID sub-TLV), { Set the Best-return-code to 10, "Mapping for this FEC is not the given label at stack-depth " [RFC8029]. Check if any below conditions fail: - Validate that the receiving node's BGP Local AS matches with one of the remote AS fields in the received PeerSet SID FEC sub-TLV. - Validate that the receiving node's BGP Router-ID matches with one of the Remote Router ID fields in the received PeerSet SID FEC sub-TLV. - Validate that there is an EBGP session with a peer having a local AS number and BGP Router-ID as specified in the local AS number and Local Router-ID fields in the received PeerSet SID FEC sub-TLV. If all above validations have passed, set the return code to 3, "Replying router is an egress for the FEC at stack-depth " [RFC8029]. }