summaryrefslogtreecommitdiff
path: root/Bpq32.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-12-23 16:30:09 +0000
committerDave Hibberd <hibby@debian.org>2025-12-23 16:30:09 +0000
commitd5f8de2e8f4d8da3aae9e27c3fdab1a820d2504c (patch)
treeb8c56d7cba797cd2892de409f1e8c58771088525 /Bpq32.c
parentee15c1a996dd06295750a13075987031399195ff (diff)
parent559d5bbf7c0f401c1def858a9695b43b56a993ec (diff)
Update upstream source from tag 'upstream/6.0.25.13+repack'
Update to upstream version '6.0.25.13+repack' with Debian dir 26b4e77a37c654b0e424f1078dc9316ded2af8ae
Diffstat (limited to 'Bpq32.c')
-rw-r--r--Bpq32.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/Bpq32.c b/Bpq32.c
index 1f80282..e88e26a 100644
--- a/Bpq32.c
+++ b/Bpq32.c
@@ -1292,6 +1292,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// Improvments to INP3 (4, 5)
// Add Node API /api/tcpqueues (5)
// Add sending link events to OARC API (disabled by default) (6)
+// Add option to write monitor output to a file (6)
// Fix possible program error in Telnet_Connected (7)
// Close links when program is closed down (7)
// Fix possible problem with deleting routes when using both NODES and INP3 routing on same link (7)
@@ -1302,6 +1303,8 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// Fix connecting to a netrom node with c p node command (10)
// Add validation of INP3 RTT messages and various INP3 fixes (12)
// Change NetromX connect syntax to Service@Node to fix passing commands to local applications (12)
+// Add config file option to enable writing monitor data to a file at startup (13)
+
#define CKernel
@@ -2821,7 +2824,13 @@ BOOL APIENTRY DllMain(HANDLE hInst, DWORD ul_reason_being_called, LPVOID lpReser
MessageBox(NULL,"NODES Table .c and .asm mismatch - fix and rebuild", "BPQ32", MB_OK);
return 0;
}
-
+
+ if (sizeof(struct NR_DEST_ROUTE_ENTRY) != sizeof(struct INP3_DEST_ROUTE_ENTRY))
+ {
+ MessageBox(NULL,"Route Entry mismatch - fix and rebuild", "BPQ32", MB_OK);
+ return 0;
+ }
+
GetSemaphore(&Semaphore, 4);
BPQHOSTVECPTR = &BPQHOSTVECTOR[0];
@@ -4219,13 +4228,12 @@ int APIENTRY Restart()
hProc = OpenProcess(PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, TimerInst);
- if (hProc)
- {
- TerminateProcess(hProc, 0);
- CloseHandle(hProc);
- }
+ if (hProc)
+ {
+ TerminateProcess(hProc, 0);
+ CloseHandle(hProc);
+ }
-
return 0;
}