mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn.git
synced 2025-11-03 13:43:16 +00:00
[ipaccess] Make the IPA version of LTV public.
This commit is contained in:
@@ -51,6 +51,9 @@ void ipaccess_prepend_header(struct msgb *msg, int proto);
|
||||
int ipaccess_send_id_ack(int fd);
|
||||
int ipaccess_send_id_req(int fd);
|
||||
|
||||
int ipaccess_idtag_parse(struct tlv_parsed *dec, unsigned char *buf, int len);
|
||||
|
||||
|
||||
/*
|
||||
* Firmware specific header
|
||||
*/
|
||||
|
||||
@@ -89,7 +89,7 @@ static const char *ipac_idtag_name(int tag)
|
||||
return idtag_names[tag];
|
||||
}
|
||||
|
||||
static int ipac_idtag_parse(struct tlv_parsed *dec, unsigned char *buf, int len)
|
||||
int ipaccess_idtag_parse(struct tlv_parsed *dec, unsigned char *buf, int len)
|
||||
{
|
||||
u_int8_t t_len;
|
||||
u_int8_t t_tag;
|
||||
@@ -212,7 +212,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg,
|
||||
case IPAC_MSGT_ID_RESP:
|
||||
DEBUGP(DMI, "ID_RESP ");
|
||||
/* parse tags, search for Unit ID */
|
||||
ipac_idtag_parse(&tlvp, (u_int8_t *)msg->l2h + 2,
|
||||
ipaccess_idtag_parse(&tlvp, (u_int8_t *)msg->l2h + 2,
|
||||
msgb_l2len(msg)-2);
|
||||
DEBUGP(DMI, "\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user