Allow MME name preformatted as FQDN in SGsAP
Change-Id: I2d55f9524b9fc15d661e5cb6b5df6d715c52ccf9
This commit is contained in:
parent
c65cfe8696
commit
e2bd9eb37d
|
@ -168,6 +168,12 @@ static int decode_mme_name(char *mme_name, const struct tlv_parsed *tp)
|
|||
if (!mme_name_enc)
|
||||
return -EINVAL;
|
||||
|
||||
/* some implementations use FDQN format violating TS 29.118 9.3.14 */
|
||||
if (!osmo_parse_mme_domain(&gummei, (const char *) mme_name_enc)) {
|
||||
memcpy(mme_name, mme_name_enc, TLVP_LEN(tp, SGSAP_IE_MME_NAME));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* decode the MME name from DNS labels to string */
|
||||
osmo_apn_to_str(mme_name, TLVP_VAL(tp, SGSAP_IE_MME_NAME), TLVP_LEN(tp, SGSAP_IE_MME_NAME));
|
||||
|
||||
|
|
Loading…
Reference in New Issue