FreeCalypso > hg > freecalypso-sw
diff rvinterf/lowlevel/clientcmd.c @ 266:cb833ff54d88
rvinterf: CLI2RVI_RESET_PACKET_RX command implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 06 Feb 2014 01:10:13 +0000 |
parents | 2f285f20d617 |
children | 2682003dcba7 |
line wrap: on
line diff
--- a/rvinterf/lowlevel/clientcmd.c Thu Feb 06 00:34:45 2014 +0000 +++ b/rvinterf/lowlevel/clientcmd.c Thu Feb 06 01:10:13 2014 +0000 @@ -38,10 +38,12 @@ cli->int_rvt_match[c] = cli->rx_buf[5] << 24 | cli->rx_buf[6] << 16 | cli->rx_buf[7] << 8 | cli->rx_buf[8]; +#if 0 sprintf(logmsg, "*** Client program interested in RVT mask %08X match %08X", cli->int_rvt_mask[c], cli->int_rvt_match[c]); output_line(logmsg); +#endif cli->int_rvt_count++; send_local_msg_to_client(cli, "+OK"); return; @@ -55,13 +57,20 @@ "-Unsupported protocol MUX value"); return; } +#if 0 sprintf(logmsg, "*** Client program interested in MUX proto %02X", cli->rx_buf[1]); output_line(logmsg); +#endif cli->int_proto[cli->rx_buf[1] - 0x12] = 1; send_local_msg_to_client(cli, "+OK"); return; + case CLI2RVI_RESET_PACKET_RX: + cli->int_rvt_count = 0; + bzero(cli->int_proto, sizeof(cli->int_proto)); + send_local_msg_to_client(cli, "+OK"); + return; case CLI2RVI_PKT_TO_TARGET: c = cli->rx_msglen - 1; if (c < 1 || c > MAX_PKT_TO_TARGET) {