From 424c0bd3e14d3ddda6c2d945b6465d51c462c76b Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 5 Nov 2024 21:03:15 +0000 Subject: New upstream version 6.0.24.49 --- UIARQ.c | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'UIARQ.c') diff --git a/UIARQ.c b/UIARQ.c index 99b2b49..fe880c3 100644 --- a/UIARQ.c +++ b/UIARQ.c @@ -367,10 +367,10 @@ static VOID UpdateStatsLine(struct TNCINFO * TNC, struct STREAMINFO * STREAM) { char Count[16]; - sprintf(Count, "%d", STREAM->BytesRXed); + sprintf(Count, "%d", STREAM->bytesRXed); SetWindowText(STREAM->xIDC_RXED, Count); - sprintf(Count, "%d", STREAM->BytesTXed); + sprintf(Count, "%d", STREAM->bytesTXed); SetWindowText(STREAM->xIDC_SEND, Count); sprintf(Count, "%d", STREAM->BytesResent); @@ -849,7 +849,7 @@ static VOID ProcessFLDigiData(struct TNCINFO * TNC, UCHAR * Input, int Len, int strcpy(STREAM->MyCall, call2); STREAM->ConnectTime = time(NULL); - STREAM->BytesRXed = STREAM->BytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0; + STREAM->bytesRXed = STREAM->bytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0; if (WL2K) strcpy(SESS->RMSCall, WL2K->RMSCall); @@ -1001,7 +1001,7 @@ AckConnectRequest: goto SendKReply; // Repeated ACK STREAM->ConnectTime = time(NULL); - STREAM->BytesRXed = STREAM->BytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0; + STREAM->bytesRXed = STREAM->bytesTXed = STREAM->BytesAcked = STREAM->BytesResent = 0; STREAM->Connected = TRUE; ARQ->ARQTimerState = 0; @@ -1240,20 +1240,7 @@ SendKReply: { // Create a traffic record - char logmsg[120]; - time_t Duration; - - Duration = time(NULL) - STREAM->ConnectTime; - - if (Duration == 0) - Duration = 1; - - sprintf(logmsg,"Port %2d %9s Bytes Sent %d BPS %d Bytes Received %d BPS %d Time %d Seconds", - TNC->Port, STREAM->RemoteCall, - STREAM->BytesTXed, (int)(STREAM->BytesTXed/Duration), - STREAM->BytesRXed, (int)(STREAM->BytesRXed/Duration), (int)Duration); - - Debugprintf(logmsg); + hookL4SessionDeleted(TNC, STREAM); } STREAM->Connecting = FALSE; @@ -1313,7 +1300,7 @@ SendKReply: buffptr->Len = Len; memcpy(buffptr->Data, &Input[1], Len); - STREAM->BytesRXed += Len; + STREAM->bytesRXed += Len; UpdateStatsLine(TNC, STREAM); @@ -1401,7 +1388,7 @@ static VOID SendARQData(struct TNCINFO * TNC, PMSGWITHLEN Buffer, int Stream) ARQ->TXHOLDQ[ARQ->TXSeq] = Buffer; - STREAM->BytesTXed += Origlen; + STREAM->bytesTXed += Origlen; UpdateStatsLine(TNC, STREAM); -- cgit v1.2.3