Migrate from osmo_ipa_idtag_parse() to ipa_ccm_id_resp_parse()
In libosmocore Change-ID I1834d90fbcdbfcb05f5b8cfe39bfe9543737ef8f we have introduced ipa_ccm_id_resp_parse() as a bugfixed replacement of ipa_ccm_idtag_parse(). The main difference is that the returned "value" parts now have a correct reported "length", whereas before this commit they all reported a one-byte too-long "length" for each IE. Change-Id: I7d5ab323989c13d0cc6ff05547306edb918e423f
This commit is contained in:
parent
c80cce67af
commit
13af4d7ec5
|
@ -458,8 +458,7 @@ static int ipaccess_rcvmsg(struct ipa_proxy_conn *ipc, struct msgb *msg,
|
|||
case IPAC_MSGT_ID_RESP:
|
||||
DEBUGP(DLMI, "ID_RESP ");
|
||||
/* parse tags, search for Unit ID */
|
||||
ipa_ccm_idtag_parse(&tlvp, (uint8_t *)msg->l2h + 2,
|
||||
msgb_l2len(msg)-2);
|
||||
ipa_ccm_id_resp_parse(&tlvp, (uint8_t *)msg->l2h+1, msgb_l2len(msg)-1);
|
||||
DEBUGP(DLMI, "\n");
|
||||
|
||||
if (!TLVP_PRESENT(&tlvp, IPAC_IDTAG_UNIT)) {
|
||||
|
|
Loading…
Reference in New Issue