diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-05 21:03:23 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-05 21:03:23 +0000 |
| commit | 5767c5f6e8eacf437d0b487d940681b96ac3b32b (patch) | |
| tree | a040d1059df151e2d055afd182631f132da39435 /FLDigi.c | |
| parent | 61f49ee46b56cdff6cfae929f7547b36de26f141 (diff) | |
| parent | 424c0bd3e14d3ddda6c2d945b6465d51c462c76b (diff) | |
Update upstream source from tag 'upstream/6.0.24.49'
Update to upstream version '6.0.24.49'
with Debian dir 985e9a7aed1573d949ab4cb30ca01e9f15823223
Diffstat (limited to 'FLDigi.c')
| -rw-r--r-- | FLDigi.c | 27 |
1 files changed, 6 insertions, 21 deletions
@@ -1637,7 +1637,7 @@ static VOID ConnecttoFLDigiThread(void * portptr) VOID UpdateStatsLine(struct TNCINFO * TNC, struct STREAMINFO * STREAM)
{
sprintf(TNC->WEB_TRAFFIC, "RX %d TX %d ACKED %d Resent %d Queued %d",
- STREAM->BytesRXed, STREAM->BytesTXed, STREAM->BytesAcked, STREAM->BytesResent, STREAM->BytesOutstanding);
+ STREAM->bytesRXed, STREAM->bytesTXed, STREAM->BytesAcked, STREAM->BytesResent, STREAM->BytesOutstanding);
SetWindowText(TNC->xIDC_TRAFFIC, TNC->WEB_TRAFFIC);
}
@@ -2531,7 +2531,7 @@ VOID ProcessFLDigiData(struct TNCINFO * TNC, UCHAR * Input, int Len, char Channe 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 (TNC->RIG && TNC->RIG != &TNC->DummyRig && strcmp(TNC->RIG->RigName, "PTT"))
{
@@ -2690,7 +2690,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;
@@ -2951,22 +2951,7 @@ SendKReply: if (STREAM->Connected)
{
- // 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;
@@ -3029,7 +3014,7 @@ SendKReply: buffptr->Len = Len;
memcpy(buffptr->Data, &Input[1], Len);
- STREAM->BytesRXed += Len;
+ STREAM->bytesRXed += Len;
UpdateStatsLine(TNC, STREAM);
@@ -3146,7 +3131,7 @@ VOID SendARQData(struct TNCINFO * TNC, PMSGWITHLEN Buffer) ARQ->TXHOLDQ[ARQ->TXSeq] = Buffer;
- STREAM->BytesTXed += Origlen;
+ STREAM->bytesTXed += Origlen;
UpdateStatsLine(TNC, STREAM);
|
