diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-05 21:03:15 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-05 21:03:15 +0000 |
| commit | 424c0bd3e14d3ddda6c2d945b6465d51c462c76b (patch) | |
| tree | 80b44cbe3f5fc19de1c057e37c761a95a0518a44 /UIARQ.c | |
| parent | eb0d36d3f67be13de74023adb6d30362d47805fe (diff) | |
New upstream version 6.0.24.49upstream/6.0.24.49
Diffstat (limited to 'UIARQ.c')
| -rw-r--r-- | UIARQ.c | 27 |
1 files changed, 7 insertions, 20 deletions
@@ -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);
|
