diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-05-25 14:17:53 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-05-25 14:17:53 +0100 |
| commit | 4924c1223ef5e47353ef34892b732c2081096427 (patch) | |
| tree | bfc0e3c6ef678127d747e47431d4054b73ed160d /cMain.c | |
| parent | ac7e6b99beace1e002246436175581d01b02a117 (diff) | |
6.0.23.7023.71
Diffstat (limited to 'cMain.c')
| -rw-r--r-- | cMain.c | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -238,7 +238,7 @@ int BTLENGTH = 9; // DW 9 ; LENGTH // DB 0F0H ; PID
char BTEXTFLD[256] ="\r";
-char BridgeMap[33][33] = {0};
+char BridgeMap[MaxBPQPortNo + 1][MaxBPQPortNo + 1] = {0};
// Keep Buffers at end
@@ -261,9 +261,6 @@ extern int NUMBEROFTNCPORTS; extern APPLCALLS APPLCALLTABLE[];
-int IntDecodeFrame(MESSAGE * msg, char * buffer, time_t Stamp, unsigned long long Mask, BOOL APRS, BOOL MINI);
-DllExport int APIENTRY SetTraceOptionsEx(int mask, int mtxparam, int mcomparam, int monUIOnly);
-
// LOOPBACK PORT ROUTINES
VOID LINKINIT(PEXTPORTDATA PORTVEC)
@@ -2233,11 +2230,11 @@ L2Packet: {
MESSAGE * Buffer = (PMESSAGE)Q_REM((void *)&PORT->PORTTX_Q);
- Debugprintf("Busy but not connected - discard message");
-
if (Buffer == 0)
break; // WOT!!
+// Debugprintf("Busy but not connected - discard message %s", Buffer->L2DATA);
+
ReleaseBuffer(Buffer);
break;
}
@@ -2372,7 +2369,7 @@ ENDOFLIST: VOID DoListenMonitor(TRANSPORTENTRY * L4, MESSAGE * Msg)
{
- unsigned long long SaveMMASK = MMASK;
+ uint64_t SaveMMASK = MMASK;
BOOL SaveMTX = MTX;
BOOL SaveMCOM = MCOM;
BOOL SaveMUI = MUIONLY;
@@ -2388,11 +2385,11 @@ VOID DoListenMonitor(TRANSPORTENTRY * L4, MESSAGE * Msg) if (monchars[21] == 3 && monchars[22] == 0xcf && monchars[23] == 0xff) // Netrom Nodes
return;
- SetTraceOptionsEx(L4->LISTEN, 1, 0, 0);
+ IntSetTraceOptionsEx(L4->LISTEN, 1, 0, 0);
len = IntDecodeFrame(Msg, MonBuffer, Msg->Timestamp, L4->LISTEN, FALSE, TRUE);
- SetTraceOptionsEx(SaveMMASK, SaveMTX, SaveMCOM, SaveMUI);
+ IntSetTraceOptionsEx(SaveMMASK, SaveMTX, SaveMCOM, SaveMUI);
if (len == 0)
return;
@@ -2472,7 +2469,7 @@ int BPQTRACE(MESSAGE * Msg, BOOL TOAPRS) while (i--)
{
if (L4->LISTEN)
- if (((1 << ((Msg->PORT & 0x7f) - 1)) & L4->LISTEN))
+ if ((((uint64_t)1 << ((Msg->PORT & 0x7f) - 1)) & L4->LISTEN))
// if ((Msg->PORT & 0x7f) == L4->LISTEN)
DoListenMonitor(L4, Msg);
|
