diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-10 22:07:04 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-10 22:07:04 +0100 |
| commit | 7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (patch) | |
| tree | e5feda7463d38022eef6eedf032423189e9d3dce /L2Code.c | |
| parent | 084ecb74f6007abbb7e1578675964ac9352ef822 (diff) | |
New upstream version 6.0.24.15upstream/6.0.24.15
Diffstat (limited to 'L2Code.c')
| -rw-r--r-- | L2Code.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -965,6 +965,11 @@ VOID ProcessXIDCommand(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESS L2SWAPADDRESSES(Buffer); // SWAP ADDRESSES AND SET RESP BITS
+ // We need to save APPLMASK and ALIASPTR so following SABM connects to application
+
+ LINK->APPLMASK = APPLMASK;
+ LINK->ALIASPTR = ALIASPTR;
+
PUT_ON_PORT_Q(PORT, Buffer);
return;
}
@@ -1089,6 +1094,9 @@ VOID L2LINKACTIVE(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESSAGE * if (LINK->L2STATE == 1) // Sent XID?
{
+ APPLMASK = LINK->APPLMASK;
+ ALIASPTR = LINK->ALIASPTR;
+
L2SABM(LINK, PORT, Buffer, ADJBUFFER, MSGFLAG); // Process the SABM
return;
}
@@ -1351,7 +1359,7 @@ VOID L2SABM(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESSAGE * Buffe {
Msg->PID = 0xf0;
- memcpy(Msg->L2DATA, APPL->APPLCMD, 12);
+ memcpy(Msg->L2DATA, ALIASPTR, 12);
Msg->L2DATA[12] = 13;
Msg->LENGTH = MSGHDDRLEN + 12 + 2; // 2 for PID and CR
@@ -2412,6 +2420,10 @@ CheckPF: LINK->LAST_F_TIME = REALTIMETICKS;
}
+ else
+ if (LINK->L2ACKREQ == 0) // Resptime is zero so send RR now
+ SEND_RR_RESP(LINK, 0);
+
}
|
