diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-07-22 20:56:59 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-07-22 20:56:59 +0100 |
| commit | 1f40ff4a07793ecfa679a1384053451c4f3f536f (patch) | |
| tree | c0813999c7216f98b4ac66224bd01589baee84d1 /Events.c | |
| parent | b128f2a43a16acef50de045ae6526772c04c395e (diff) | |
New upstream version 6.0.24.77+repackupstream/6.0.24.77+repack
Diffstat (limited to 'Events.c')
| -rw-r--r-- | Events.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -168,6 +168,12 @@ void hookL2SessionDeleted(struct _LINKTABLE * LINK) LINK->ConnectTime = 0;
}
+
+ if (LINK->Sent && LINK->Received && (LINK->SentAfterCompression || LINK->ReceivedAfterExpansion))
+ Debugprintf("L2 Compression Stats %s %s TX %d %d %d%% RX %d %d %d%%", LINK->callingCall, LINK->receivingCall,
+ LINK->Sent, LINK->SentAfterCompression, ((LINK->Sent - LINK->SentAfterCompression) * 100) / LINK->Sent,
+ LINK->Received, LINK->ReceivedAfterExpansion, ((LINK->ReceivedAfterExpansion - LINK->Received) * 100) / LINK->Received);
+
}
void hookL2SessionAttempt(int Port, char * ourcall, char * remotecall, struct _LINKTABLE * LINK)
|
