summaryrefslogtreecommitdiff
path: root/L2Code.c
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2023-05-25 14:17:53 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2023-05-25 14:17:53 +0100
commit4924c1223ef5e47353ef34892b732c2081096427 (patch)
treebfc0e3c6ef678127d747e47431d4054b73ed160d /L2Code.c
parentac7e6b99beace1e002246436175581d01b02a117 (diff)
6.0.23.7023.71
Diffstat (limited to 'L2Code.c')
-rw-r--r--L2Code.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/L2Code.c b/L2Code.c
index 78c58c7..ecf0de8 100644
--- a/L2Code.c
+++ b/L2Code.c
@@ -132,8 +132,6 @@ extern UCHAR * ALIASPTR;
UCHAR QSTCALL[7] = {'Q'+'Q','S'+'S','T'+'T',0x40,0x40,0x40,0xe0}; // QST IN AX25
UCHAR NODECALL[7] = {0x9C, 0x9E, 0x88, 0x8A, 0xA6, 0x40, 0xE0}; // 'NODES' IN AX25 FORMAT
-extern struct TNCINFO * TNCInfo[41]; // Records are Malloc'd
-
extern BOOL LogAllConnects;
APPLCALLS * APPL;
@@ -3856,7 +3854,7 @@ BOOL CheckForListeningSession(struct PORTCONTROL * PORT, MESSAGE * Msg)
while (i--)
{
- if ((CountBits(L4->LISTEN) == 1) && ((1 << ((Msg->PORT & 0x7f) - 1) && L4->LISTEN)))
+ if ((CountBits64(L4->LISTEN) == 1) && ((1 << ((Msg->PORT & 0x7f) - 1) && L4->LISTEN)))
{
// See if he is calling our call
@@ -3900,7 +3898,7 @@ BOOL CheckForListeningSession(struct PORTCONTROL * PORT, MESSAGE * Msg)
// SET UP NEW SESSION (OR RESET EXISTING ONE)
- FindLink(Msg->ORIGIN, ourcall, L4->LISTEN, &LINK);
+ FindLink(Msg->ORIGIN, ourcall, PORT->PORTNUMBER, &LINK);
if (LINK == NULL)
return FALSE;