FreeCalypso > hg > freecalypso-sw
changeset 1008:5f919af515f1
rvinterf: beginning of support for new TCH and KEEPALIVE RVTMUX channels
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 20 Mar 2016 19:59:19 +0000 |
parents | 3bfeee466b0a |
children | 009d5bf2ff4c |
files | rvinterf/include/pktmux.h rvinterf/lowlevel/client.h rvinterf/lowlevel/clientcmd.c |
diffstat | 3 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/rvinterf/include/pktmux.h Sun Mar 20 19:31:39 2016 +0000 +++ b/rvinterf/include/pktmux.h Sun Mar 20 19:59:19 2016 +0000 @@ -13,6 +13,8 @@ #define RVT_PROF_HEADER 0x16 #define RVT_GTTBACK_HEADER 0x17 #define RVT_OTHER_HEADER 0x18 -#define RVT_AT_HEADER 0x1A /* FreeCalypso addition */ -#define RVT_EXTUI_HEADER 0x1B /* ditto */ -#define RVT_INVALID_HEADER 0xFF +/* FreeCalypso additions */ +#define RVT_AT_HEADER 0x1A +#define RVT_EXTUI_HEADER 0x1B +#define RVT_TCH_HEADER 0x1C +#define RVT_KEEPALIVE_HEADER 0x1D
--- a/rvinterf/lowlevel/client.h Sun Mar 20 19:31:39 2016 +0000 +++ b/rvinterf/lowlevel/client.h Sun Mar 20 19:59:19 2016 +0000 @@ -18,5 +18,5 @@ int int_rvt_count; u32 int_rvt_mask[MAX_RVT_INTEREST]; u32 int_rvt_match[MAX_RVT_INTEREST]; - char int_proto[10]; + char int_proto[12]; };
--- a/rvinterf/lowlevel/clientcmd.c Sun Mar 20 19:31:39 2016 +0000 +++ b/rvinterf/lowlevel/clientcmd.c Sun Mar 20 19:59:19 2016 +0000 @@ -45,7 +45,7 @@ send_local_msg_to_client(cli, "-Bad command length"); return; } - if (cli->rx_buf[1] < 0x12 || cli->rx_buf[1] > 0x1B) { + if (cli->rx_buf[1] < 0x12 || cli->rx_buf[1] > 0x1D) { send_local_msg_to_client(cli, "-Unsupported protocol MUX value"); return; @@ -58,7 +58,7 @@ send_local_msg_to_client(cli, "-Bad command length"); return; } - if (cli->rx_buf[1] < 0x12 || cli->rx_buf[1] > 0x1B) { + if (cli->rx_buf[1] < 0x12 || cli->rx_buf[1] > 0x1D) { send_local_msg_to_client(cli, "-Unsupported protocol MUX value"); return;