proxy: fix channel shift between front and back

When some channels are filtered, some misalignement of channel ids could happen.
This patch keeps track of the back and front channel ids to correctly identify a
channel and send packets with the correct channel id.
This commit is contained in:
David Fort
2022-11-30 09:09:25 +01:00
committed by Martin Fleisz
parent 9db032f326
commit d59c0a49c3
8 changed files with 74 additions and 23 deletions

View File

@@ -65,6 +65,9 @@ extern "C"
{
#endif
#define MCS_BASE_CHANNEL_ID 1001
#define MCS_GLOBAL_CHANNEL_ID 1003
/* Flags used by certificate callbacks */
#define VERIFY_CERT_FLAG_NONE 0x00
#define VERIFY_CERT_FLAG_LEGACY 0x02