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
This commit is contained in:
Harald Welte 2019-03-11 18:39:13 +01:00
parent 653d6a0b38
commit 19f881a373
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}