From 19f881a37358476852bb9556584ca73ae1978850 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 11 Mar 2019 18:39:13 +0100 Subject: [PATCH] bankd: respond to IPA PING from client with IPA PONG The bankd worker threads handle the RSPRO connection from the remsim-clients outside of our usual osmo* infrastructure and hence they don't inherit the common IPA CCM handling. This means we need to explicitly implement the keep-alive PONG support. What this doesn't add is any outbound keepalive handling towards the client. Change-Id: I86f8ca28ece62c33ccbf45c9c65172be8a647407 --- src/bankd_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bankd_main.c b/src/bankd_main.c index b87c4c7..4142713 100644 --- a/src/bankd_main.c +++ b/src/bankd_main.c @@ -670,7 +670,13 @@ restart_wait: } if (hh->proto == IPAC_PROTO_IPACCESS) { - LOGW(worker, "IPA CCM not implemented yet\n"); + switch (hh->data[0]) { + case IPAC_MSGT_PING: + return ipa_ccm_send_pong(worker->client.fd); + default: + LOGW(worker, "IPA CCM 0x%02x not implemented yet\n", hh->data[0]); + break; + } return 0; }