master 24.48
John Wiseman 1 year ago
parent fdfd727cf6
commit 033b8fbf8d

@ -1230,7 +1230,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// NodeAPI improvements (46) // NodeAPI improvements (46)
// Add MQTT Interface (46) // Add MQTT Interface (46)
// Fix buffer leak in ARDOP codev(46) // Fix buffer leak in ARDOP codev(46)
// Fix possilbe crash if MQTT not in use (47)
#define CKernel #define CKernel

@ -40,6 +40,7 @@ VOID __cdecl Debugprintf(const char * format, ...);
extern BOOL EventsEnabled; extern BOOL EventsEnabled;
void MQTTReportSession(char * Msg); void MQTTReportSession(char * Msg);
extern int MQTT;
extern char Modenames[19][10]; extern char Modenames[19][10];
@ -162,7 +163,8 @@ void hookL2SessionDeleted(struct _LINKTABLE * LINK)
"KISS", LINK->Direction, LINK->LINKPORT->PORTNUMBER, LINK->callingCall, LINK->receivingCall, sessionTime, "KISS", LINK->Direction, LINK->LINKPORT->PORTNUMBER, LINK->callingCall, LINK->receivingCall, sessionTime,
LINK->bytesTXed, avBytesSent, LINK->bytesRXed, avBytesRXed, timestamp); LINK->bytesTXed, avBytesSent, LINK->bytesRXed, avBytesRXed, timestamp);
MQTTReportSession(Msg); if (MQTT)
MQTTReportSession(Msg);
} }
LINK->ConnectTime = 0; LINK->ConnectTime = 0;
@ -203,7 +205,8 @@ void hookL4SessionDeleted(struct TNCINFO * TNC, struct STREAMINFO * STREAM)
Modenames[TNC->Hardware - 1], TNC->Port, STREAM->MyCall, STREAM->RemoteCall, sessionTime, Modenames[TNC->Hardware - 1], TNC->Port, STREAM->MyCall, STREAM->RemoteCall, sessionTime,
STREAM->BytesTXed, avBytesSent, STREAM->BytesRXed, avBytesRXed, timestamp); STREAM->BytesTXed, avBytesSent, STREAM->BytesRXed, avBytesRXed, timestamp);
MQTTReportSession(Msg); if (MQTT)
MQTTReportSession(Msg);
STREAM->ConnectTime = 0; STREAM->ConnectTime = 0;
} }

@ -10,8 +10,8 @@
#endif #endif
#define KVers 6,0,24,46 #define KVers 6,0,24,47
#define KVerstring "6.0.24.46\0" #define KVerstring "6.0.24.47\0"
#ifdef CKernel #ifdef CKernel

Loading…
Cancel
Save

Powered by TurnKey Linux.