aboutsummaryrefslogtreecommitdiffstats
path: root/src/channel
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel')
-rw-r--r--src/channel/abis_ipa_client.c10
-rw-r--r--src/channel/abis_ipa_server.c4
2 files changed, 11 insertions, 3 deletions
diff --git a/src/channel/abis_ipa_client.c b/src/channel/abis_ipa_client.c
index 9c3554d..079ad35 100644
--- a/src/channel/abis_ipa_client.c
+++ b/src/channel/abis_ipa_client.c
@@ -154,6 +154,14 @@ void osmo_abis_ipa_cli_set_rsl_port(struct osmo_chan *c, uint16_t port)
osmo_stream_cli_set_port(s->rsl, port);
}
+void osmo_abis_ipa_cli_set_unit(struct osmo_chan *c, struct ipaccess_unit *unit)
+{
+ struct chan_abis_ipa_cli *s = (struct chan_abis_ipa_cli *)&c->data;
+
+ osmo_ipa_unit_free(s->unit);
+ s->unit = unit;
+}
+
void osmo_abis_ipa_cli_set_cb_signalmsg(struct osmo_chan *c,
void (*signal_msg)(struct msgb *msg, int type))
{
@@ -257,7 +265,7 @@ abis_ipa_cli_rcvmsg(struct osmo_chan *c, struct osmo_stream_cli *conn,
int ret;
/* Handle IPA PING, PONG and ID_ACK messages. */
- if (osmo_ipa_rcvmsg_base(msg, ofd))
+ if (osmo_ipa_rcvmsg_base(msg, ofd, 0)) /* XXX: 0 indicates client */
return 0;
if (msg_type == IPAC_MSGT_ID_GET) {
diff --git a/src/channel/abis_ipa_server.c b/src/channel/abis_ipa_server.c
index b971b50..e4fac1c 100644
--- a/src/channel/abis_ipa_server.c
+++ b/src/channel/abis_ipa_server.c
@@ -346,8 +346,8 @@ abis_ipa_srv_rcvmsg(struct osmo_chan *c,
char *unitid;
int len, ret;
- /* Handle IPA PING, PONG and ID_ACK messages. */
- if (osmo_ipa_rcvmsg_base(msg, ofd))
+ /* Handle IPA PING, PONG and ID_ACK messages */
+ if (osmo_ipa_rcvmsg_base(msg, ofd, 1)) /* XXX: 1 indicates server */
return 0;
if (msg_type == IPAC_MSGT_ID_RESP) {