diff options
Diffstat (limited to 'src/input/ipaccess.c')
-rw-r--r-- | src/input/ipaccess.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 602aded..b7391b3 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -187,24 +187,24 @@ int ipaccess_send_id_req(int fd) } /* base handling of the ip.access protocol */ -static bool ipaccess_rcvmsg_base(struct msgb *msg, struct osmo_fd *bfd) +int ipaccess_rcvmsg_base(struct msgb *msg, struct osmo_fd *bfd) { - bool ipa_ccm = false; + int ipa_ccm = 0; uint8_t msg_type = *(msg->l2h); int ret = 0; switch (msg_type) { case IPAC_MSGT_PING: - ipa_ccm = true; + ipa_ccm = 1; ret = ipaccess_send_pong(bfd->fd); break; case IPAC_MSGT_PONG: DEBUGP(DLMI, "PONG!\n"); - ipa_ccm = true; + ipa_ccm = 1; break; case IPAC_MSGT_ID_ACK: DEBUGP(DLMI, "ID_ACK? -> ACK!\n"); - ipa_ccm = true; + ipa_ccm = 1; ret = ipaccess_send_id_ack(bfd->fd); break; } |