forked from g8bpq/linbpq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBpq32.c
6642 lines (5059 loc) · 169 KB
/
Bpq32.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright 2001-2022 John Wiseman G8BPQ
This file is part of LinBPQ/BPQ32.
LinBPQ/BPQ32 is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
LinBPQ/BPQ32 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
*/
//
// 409l Oct 2001 Fix l3timeout for KISS
//
// 409m Oct 2001 Fix Crossband Digi
//
// 409n May 2002 Change error handling on load ext DLL
// 409p March 2005 Allow Multidigit COM Ports (kiss.c)
// 409r August 2005 Treat NULL string in Registry as use current directory
// Allow shutdown to close BPQ Applications
// 409s October 2005 Add DLL:Export entries to API for BPQTNC2
// 409t January 2006
//
// Add API for Perl "GetPerlMsg"
// Add API for BPQ1632 "GETBPQAPI" - returns address of Assembler API routine
// Add Registry Entry "BPQ Directory". If present, overrides "Config File Location"
// Add New API "GetBPQDirectory" - Returns location of config file
// Add New API "ChangeSessionCallsign" - equivalent to "*** linked to" command
// Rename BPQNODES to BPQNODES.dat
// New API "GetAttachedProcesses" - returns number of processes connected.
// Warn if user trys to close Console Window.
// Add Debug entries to record Process Attach/Detach
// Fix recovery following closure of first process
// 409t Beta 2 February 2006
//
// Add API Entry "GetPortNumber"
//
// 409u February 2006
//
// Fix crash if allocate/deallocate called with stream=0
// Add API to ch
// Display config file path
// Fix saving of Locked Node flag
// Added SAVENODES SYSOP command
//
// 409u 2 March 2006
//
// Fix SetupBPQDirectory
// Add CopyBPQDirectory (for Basic Programs)
//
// 409u 3 March 2006
//
// Release streams on DLL unload
// 409v October 2006
//
// Support Minimize to Tray for all BPQ progams
// Implement L4 application callsigns
// 410 November 2006
//
// Modified to compile with C++ 2005 Express Edition
// Make MCOM MTX MMASK local variables
//
// 410a January 2007
//
// Add program name to Attach-Detach messages
// Attempt to detect processes which have died
// Fix bug in NETROM and IFrame decode which would cause crash if frame was corrupt
// Add BCALL - origin call for Beacons
// Fix KISS ACKMODE ACK processing
//
// 410b November 2007
//
// Allow CTEXT of up to 510, and enforce PACLEN, fragmenting if necessary
// 410c December 2007
// Fix problem with NT introduced in V410a
// Display location of DLL on Console
// 410d January 2008
// Fix crash in DLL Init caused by long path to program
// Invoke Appl2 alias on C command (if enabled)
// Allow C command to be disabled
// Remove debug trap in GETRAWFRAME
// Validate Alias of directly connected node, mainly for KPC3 DISABL Problem
// Move Port statup code out of DLLInit (mainly for perl)
// Changes to allow Load/Unload of bpq32.dll by appl
// CloseBPQ32 API added
// Ext Driver Close routes called
// Changes to release Mutex
// 410e May 2008
// Fix missing SSID on last call of UNPROTO string (CONVTOAX25 in main.asm)
// Fix VCOM Driver (RX Len was 1 byte too long)
// Fix possible crash on L4CODE if L4DACK received out of sequence
// Add basic IP decoding
// 410f October 2008
// Add IP Gateway
// Add Multiport DIGI capability
// Add GetPortDescription API
// Fix potential hangs if RNR lost
// Fix problem if External driver failes to load
// Put pushad/popad round _INITIALISEPORTS (main.asm)
// Add APIs GetApplCallVB and GetPortDescription (mainly for RMS)
// Ensure Route Qual is updated if Port Qual changed
// Add Reload Option, plus menu items for DUMP and SAVENODES
// 410g December 2008
// Restore API Exports BPQHOSTAPIPTR and MONDECODEPTR (accidentally deleted)
// Fix changed init of BPQDirectory (accidentally changed)
// Fix Checks for lost processes (accidentally deleted)
// Support HDLC Cards on W2K and above
// Delete Tray List entries for crashed processes
// Add Option to NODES command to sort by Callsign
// Add options to save or clear BPQNODES before Reconfig.
// Fix Reconfig in Win98
// Monitor buffering tweaks
// Fix Init for large (>64k) tables
// Fix Nodes count in Stats
// 410h January 2009
// Add Start Minimized Option
// Changes to KISS for WIn98 Virtual COM
// Open \\.\com instead of //./COM
// Extra Dignostics
// 410i Febuary 2009
// Revert KISS Changes
// Save Window positions
// 410j June 2009
// Fix tidying of window List when program crashed
// Add Max Nodes to Stats
// Don't update APPLnALIAS with received NODES info
// Fix MH display in other timezones
// Fix Possible crash when processing NETROM type Zero frames (eg NRR)
// Basic INP3 Stuff
// Add extra diagnostics to Lost Process detection
// Process Netrom Record Route frames.
// 410k June 2009
// Fix calculation of %retries in extended ROUTES display
// Fix corruption of ROUTES table
// 410l October 2009
// Add GetVersionString API call.
// Add GetPortTableEntry API call
// Keep links to neighbouring nodes open
// Build 2
// Fix PE in NOROUTETODEST (missing POP EBX)
// 410m November 2009
// Changes for PACTOR and WINMOR to support the ATTACH command
// Enable INP3 if configured on a route.
// Fix count of nodes in Stats Display
// Overwrite the worst quality unused route if a call is received from a node not in your
// table when the table is full
// Build 5
// Rig Control Interface
// Limit KAM VHF attach and RADIO commands to authorised programs (MailChat and BPQTerminal)
// Build 6
// Fix reading INP3 Flag from BPQNODES
// Build 7
// Add MAXHOPS and MAXRTT config options
// Build 8
// Fix INP3 deletion of Application Nodes.
// Fix GETCALLSIGN for Pactor Sessions
// Add N Call* to display all SSID's of a call
// Fix flow control on Pactor sessions.
// Build 9
// HDLC Support for XP
// Add AUTH routines
// Build 10
// Fix handling commands split over more that one packet.
// Build 11
// Attach cmd changes for winmor disconnecting state
// Option Interlock Winmor/Pactor ports
// Build 12
// Add APPLS export for winmor
// Handle commands ending CR LF
// Build 13
// Incorporate Rig Control in Kernel
// Build 14
// Fix config reload for Rig COntrol
// 410n March 2010
// Implement C P via PACTOR/WINMOR (for Airmail)
// Build 2
// Don't flip SSID bits on Downlink Connect if uplink is Pactor/WINMOR
// Fix resetting IDLE Timer on Pactor/WINMOR sessions
// Send L4 KEEPLI messages based on IDLETIME
// 410o July 2010
// Read bpqcfg.txt instead of .bin
// Support 32 bit MMASK (Allowing 32 Ports)
// Support 32 bit _APPLMASK (Allowing 32 Applications)
// Allow more commands
// Allow longer command aliases
// Fix logic error in RIGControl Port Initialisation (wasn't always raising RTS and DTR
// Clear RIGControl RTS and DTR on close
// 410o Build 2 August 2010
// Fix couple of errors in config (needed APPLICATIONS and BBSCALL/ALIAS/QUAL)
// Fix Kenwood Rig Control when more than one message received at once.
// Save minimzed state of Rigcontrol Window
// 410o Build 3 August 2010
// Fix reporting of set errors in scan to a random session
// 410o Build 4 August 2010
// Change All xxx Ports are in use to no xxxx Ports are available if there are no sessions with _APPLMASK
// Fix validation of TRANSDELAY
// 410o Build 5 August 2010
// Add Repeater Shift and Set Data Mode options to Rigcontrol (for ICOM only)
// Add WINMOR and SCS Pactor mode control option to RigControl
// Extend INFOMSG to 2000 bytes
// Improve Scan freq change lock (check both SCS and WINMOR Ports)
// 410o Build 6 September 2010
// Incorporate IPGateway in main code.
// Fix GetSessionInfo for Pactor/Winmor Ports
// Add Antenna Selection to RigControl
// Allow Bandwidth options on RADIO command line (as well as in Scan definitions)
// 410o Build 7 September 2010
// Move rigconrtol display to driver windows
// Move rigcontrol config to driver config.
// Allow driver and IPGateway config info in bpq32.cfg
// Move IPGateway, AXIP, VKISS, AGW and WINMOR drivers into bpq32.dll
// Add option to reread IP Gateway config.
// Fix Reinit after process with timer closes (error in TellSessions).
// 410p Build 2 October 2010
// Move KAM and SCS drivers to bpq32.dll
// 410p Build 3 October 2010
// Support more than one axip port.
// 410p Build 4 October 2010
// Dynamically load psapi.dll (for 98/ME)
// 410p Build 5 October 2010
// Incorporate TelnetServer
// Fix AXIP ReRead Config
// Report AXIP accept() fails to syslog, not a popup.
// 410p Build 6 October 2010
// Includes HAL support
// Changes to Pactor Drivers disconnect code
// AXIP now sends with source port = dest port, unless overridden by SOURCEPORT param
// Config now checks for duplicate port definitions
// Add Node Map reporting
// Fix WINMOR deferred disconnect.
// Report Pactor PORTCALL to WL2K instead of RMS Applcall
// 410p Build 7 October 2010
// Add In/Out flag to Map reporting, and report centre, not dial
// Write Telnet log to BPQ Directory
// Add Port to AXIP resolver display
// Send Reports to update.g8bpq.net:81
// Add support for FT100 to Rigcontrol
// Add timeout to Rigcontrol PTT
// Add Save Registry Command
// 410p Build 8 November 2010
// Add NOKEEPALIVES Port Param
// Renumbered for release
// 410p Build 9 November 2010
// Get Bandwith for map report from WL2K Report Command
// Fix freq display for FT100 (was KHz, not MHz)
// Don't try to change SCS mode whilst initialising
// Allow reporting of Lat/Lon as well as Locator
// Fix Telnet Log Name
// Fix starting with Minimized windows when Minimizetotray isn't set
// Extra Program Error trapping in SessionControl
// Fix reporting same freq with different bandwidths at different times.
// Code changes to support SCS Robust Packet Mode.
// Add FT2000 to Rigcontrol
// Only Send CTEXT to connects to Node (not to connects to an Application Call)
// Released as Build 10
// 410p Build 11 January 2011
// Fix MH Update for SCS Outgoing Calls
// Add Direct CMS Access to TelnetServer
// Restructure DISCONNECT processing to run in Timer owning process
// 410p Build 12 January 2011
// Add option for Hardware PTT to use a different com port from the scan port
// Add CAT PTT for Yaesu 897 (and maybe others)
// Fix RMS Packet ports busy after restart
// Fix CMS Telnet with MAXSESSIONS > 10
// 410p Build 13 January 2011
// Fix loss of buffers in TelnetServer
// Add CMS logging.
// Add non - Promiscuous mode option for BPQETHER
// 410p Build 14 January 2011
// Add support for BPQTermTCP
// Allow more that one FBBPORT
// Allow Telnet FBB mode sessions to send CRLF as well as CR on user and pass msgs
// Add session length to CMS Telnet logging.
// Return Secure Session Flag from GetConnectionInfo
// Show Uptime as dd/hh/mm
// 4.10.16.17 March 2011
// Add "Close all programs" command
// Add BPQ Program Directory registry key
// Use HKEY_CURRENT_USER on Vista and above (and move registry if necessary)
// Time out IP Gateway ARP entries, and only reload ax.25 ARP entries
// Add support for SCS Tracker HF Modes
// Fix WL2K Reporting
// Report Version to WL2K
// Add Driver to support Tracker with multiple sessions (but no scanning, wl2k report, etc)
// Above released as 5.0.0.1
// 5.2.0.1
// Add caching of CMS Server IP addresses
// Initialise TNC State on Pactor Dialogs
// Add Shortened (6 digit) AUTH mode.
// Update MH with all frames (not just I/UI)
// Add IPV6 Support for TelnetServer and AXIP
// Fix TNC OK Test for Tracker
// Fix crash in CMS mode if terminal disconnects while tcp commect in progress
// Add WL2K reporting for Robust Packet
// Add option to suppress WL2K reporting for specific frequencies
// Fix Timeband processing for Rig Control
// New Driver for SCS Tracker allowing multiple connects, so Tracker can be used for user access
// New Driver for V4 TNC
// 5.2.1.3 October 2011
// Combine busy detector on Interlocked Ports (SCS PTC, WINMOR or KAM)
// Improved program error logging
// WL2K reporting changed to new format agreed with Lee Inman
// 5.2.3.1 January 2012
// Connects from the console to an APPLCALL or APPLALIAS now invoke any Command Alias that has been defined.
// Fix reporting of Tracker freqs to WL2K.
// Fix Tracker monitoring setup (sending M UISC)
// Fix possible call/application routing error on RP
// Changes for P4Dragon
// Include APRS Digi/IGate
// Tracker monitoring now includes DIGIS
// Support sending UI frames using SCSTRACKER, SCTRKMULTI and UZ7HO drivers
// Include driver for UZ7HO soundcard modem.
// Accept DRIVER as well as DLLNAME, and COMPORT as well as IOADDR in bpq32.cfg. COMPORT is decimal
// No longer supports separate config files, or BPQTELNETSERVER.exe
// Improved flow control for Telnet CMS Sessions
// Fix handling Config file without a newline after last line
// Add non - Promiscuous mode option for BPQETHER
// Change Console Window to a Dialog Box.
// Fix possible corruption and loss of buffers in Tracker drivers
// Add Beacon After Session option to Tracker and UZ7HO Drivers
// Rewrite RigControl and add "Reread Config Command"
// Support User Mode VCOM Driver for VKISS ports
// 5.2.4.1 January 2012
// Remove CR from Telnet User and Password Prompts
// Add Rigcontrol to UZ7HO driver
// Fix corruption of Free Buffer Count by Rigcontol
// Fix WINMOR and V4 PTT
// Add MultiPSK Driver
// Add SendBeacon export for BPQAPRS
// Add SendChatReport function
// Fix check on length of Port Config ID String with trailing spaces
// Fix interlock when Port Number <> Port Slot
// Add NETROMCALL for L3 Activity
// Add support for APRS Application
// Fix Telnet with FBBPORT and no TCPPORT
// Add Reread APRS Config
// Fix switching to Pactor after scanning in normal packet mode (PTC)
// 5.2.5.1 February 2012
// Stop reading Password file.
// Add extra MPSK commands
// Fix MPSK Transparency
// Make LOCATOR command compulsory
// Add MobileBeaconInterval APRS param
// Send Course and Speed when APRS is using GPS
// Fix Robust Packet reporting in PTC driver
// Fix corruption of some MIC-E APRS packets
// 5.2.6.1 February 2012
// Convert to MDI presentation of BPQ32.dll windows
// Send APRS Status packets
// Send QUIT not EXIT in PTC Init
// Implement new WL2K reporting format and include traffic reporting info in CMS signon
// New WL2KREPORT format
// Prevent loops when APPL alias refers to itself
// Add RigControl for Flex radios and ICOM IC-M710 Marine radio
// 5.2.7.1
// Fix opening more thn one console window on Win98
// Change method of configuring multiple timelots on WL2K reporting
// Add option to update WK2K Sysop Database
// Add Web server
// Add UIONLY port option
// 5.2.7.2
// Fix handling TelnetServer packets over 500 bytes in normal mode
// 5.2.7.3
// Fix Igate handling packets from UIView
// 5.2.7.4
// Prototype Baycom driver.
// 5.2.7.5
// Set WK2K group ref to MARS (3) if using a MARS service code
// 5.2.7.7
// Check for programs calling CloseBPQ32 when holding semaphore
// Try/Except round Status Timer Processing
// 5.2.7.8
// More Try/Except round Timer Processing
// 5.2.7.9
// Enable RX in Baycom, and remove test loopback in tx
// 5.2.7.10
// Try/Except round ProcessHTTPMessage
// 5.2.7.11
// BAYCOM tweaks
// 5.2.7.13
// Release semaphore after program error in Timer Processing
// Check fro valid dest in REFRESHROUTE
// Add TNC-X KISSOPTION (includes the ACKMODE bytes in the checksum(
// Version 5.2.9.1 Sept 2012
// Fix using KISS ports with COMn > 16
// Add "KISS over UDP" driver for PI as a TNC concentrator
// Version 6.0.1.1
// Convert to C for linux portability
// Try to speed up kiss polling
// Version 6.0.2.1
// Fix operation on Win98
// Fix callsign error with AGWtoBPQ
// Fix PTT problem with WINMOR
// Fix Reread telnet config
// Add Secure CMS signon
// Fix error in cashing addresses of CMS servers
// Fix Port Number when using Send Raw.
// Fix PE in KISS driver if invalid subchannel received
// Fix Orignal address of beacons
// Speed up Telnet port monitoring.
// Add TNC Emulators
// Add CountFramesQueuedOnStream API
// Limit number of frames that can be queued on a session.
// Add XDIGI feature
// Add Winmor Robust Mode switching for compatibility with new Winmor TNC
// Move most APRS code from BPQAPRS to here
// Stop corruption caused by overlong KISS frames
// Version 6.0.3.1
// Add starting/killing WINMOR TNC on remote host
// Fix Program Error when APRS Item or Object name is same as call of reporting station
// Dont digi a frame that we have already digi'ed
// Add ChangeSessionIdleTime API
// Add WK2KSYSOP Command
// Add IDLETIME Command
// Fix Errors in RELAYAPPL processing
// Fix PE cauaed by invalid Rigcontrol Line
// Version 6.0.4.1
// Add frequency dependent autoconnect appls for SCS Pactor
// Fix DED Monitoring of I and UI with no data
// Include AGWPE Emulator (from AGWtoBPQ)
// accept DEL (Hex 7F) as backspace in Telnet
// Fix re-running resolver on re-read AXIP config
// Speed up processing, mainly for Telnet Sessions
// Fix APRS init on restart of bpq32.exe
// Change to 2 stop bits
// Fix scrolling of WINMOR trace window
// Fix Crash when ueing DED TNC Emulator
// Fix Disconnect when using BPQDED2 Driver with Telnet Sessions
// Allow HOST applications even when CMS option is disabled
// Fix processing of APRS DIGIMAP command with no targets (didn't suppress default settings)
// Version 6.0.5.1 January 2014
// Add UTF8 conversion mode to Telnet (converts non-UTF-8 chars to UTF-8)
// Add "Clear" option to MH command
// Add "Connect to RMS Relay" Option
// Revert to one stop bit on serial ports, explictly set two on FT2000 rig control
// Fix routing of first call in Robust Packet
// Add Options to switch input source on rigs with build in soundcards (sor far only IC7100 and Kenwood 590)
// Add RTS>CAT PTT option for Sound Card rigs
// Add Clear Nodes Option (NODE DEL ALL)
// SCS Pactor can set differeant APPLCALLS when scanning.
// Fix possible Scan hangup after a manual requency change with SCS Pactor
// Accept Scan entry of W0 to disable WINMOR on that frequency
// Fix corruption of NETROMCALL by SIMPLE config command
// Enforce Pactor Levels
// Add Telnet outward connect
// Add Relay/Trimode Emulation
// Fix V4 Driver
// Add PTT Mux
// Add Locked ARP Entries (via bpq32.cfg)
// Fix IDLETIME node command
// Fix STAY param on connect
// Add STAY option to Attach and Application Commands
// Fix crash on copying a large AXIP MH Window
// Fix possible crash when bpq32.exe dies
// Fix DIGIPORT for UI frames
// Version 6.0.6.1 April 2014
// FLDigi Interface
// Fix "All CMS Servers are inaccessible" message so Mail Forwarding ELSE works.
// Validate INP3 messages to try to prevent crash
// Fix possible crash if an overlarge KISS frame is received
// Fix error in AXR command
// Add LF to Telnet Outward Connect signin if NEEDLF added to connect line
// Add CBELL to TNC21 emulator
// Add sent objects and third party messages to APRS Dup List
// Incorporate UIUtil
// Use Memory Mapped file to pass APRS info to BPQAPRS, and process APRS HTTP in BPQ32
// Improvements to FLDIGI interlocking
// Fix TNC State Display for Tracker
// Cache CMS Addresses on LinBPQ
// Fix count error on DED Driver when handling 256 byte packets
// Add basic SNMP interface for MRTG
// Fix memory loss from getaddrinfo
// Process "BUSY" response from Tracker
// Handle serial port writes that don't accept all the data
// Trap Error 10038 and try to reopen socket
// Fix crash if overlong command line received
// Version 6.0.7.1 Aptil 2014
// Fix RigContol with no frequencies for Kenwood and Yaesu
// Add busy check to FLDIGI connects
// Version 6.0.8.1 August 2014
// Use HKEY_CURRENT_USER on all OS versions
// Fix crash when APRS symbol is a space.
// Fixes for FT847 CAT
// Fix display of 3rd byte of FRMR
// Add "DEFAULT ROBUST" and "FORCE ROBUST" commands to SCSPactor Driver
// Fix possible memory corruption in WINMOR driver
// Fix FT2000 Modes
// Use new WL2K reporting system (Web API Based)
// APRS Server now cycles through hosts if DNS returns more than one
// BPQ32 can now start and stop FLDIGI
// Fix loss of AXIP Resolver when running more than one AXIP port
// Version 6.0.9.1 November 2014
// Fix setting NOKEEPALIVE flag on route created from incoming L3 message
// Ignore NODES from locked route with quality 0
// Fix seting source port in AXIP
// Fix Dual Stack (IPV4/V6) on Linux.
// Fix RELAYSOCK if IPv6 is enabled.
// Add support for FT1000
// Fix hang when APRS Messaging packet received on RF
// Attempt to normalize Node qualies when stations use widely differing Route qualities
// Add NODES VIA command to display nodes reachable via a specified neighbour
// Fix applying "DisconnectOnClose" setting on HOST API connects (Telnet Server)
// Fix buffering large messages in Telnet Host API
// Fix occasional crash in terminal part line processing
// Add "NoFallback" command to Telnet server to disable "fallback to Relay"
// Improved support for APPLCALL scanning with Pactor
// MAXBUFFS config statement is no longer needed.
// Fix USEAPPLCALLS with Tracker when connect to APPLCALL fails
// Implement LISTEN and CQ commands
// FLDIGI driver can now start FLDIGI on a remote system.
// Add IGNOREUNLOCKEDROUTES parameter
// Fix error if too many Telnet server connections
// Version 6.0.10.1 Feb 2015
// Fix crash if corrupt HTML request received.
// Allow SSID's of 'R' and 'T' on non-ax.25 ports for WL2K Radio Only network.
// Make HTTP server HTTP Version 1.1 complient - use persistent conections and close after 2.5 mins
// Add INP3ONLY flag.
// Fix program error if enter UNPROTO without a destination path
// Show client IP address on HTTP sessions in Telnet Server
// Reduce frequency and number of attempts to connect to routes when Keepalives or INP3 is set
// Add FT990 RigControl support, fix FT1000MP support.
// Support ARMV5 processors
// Changes to support LinBPQ APRS Client
// Add IC7410 to supported Soundcard rigs
// Add CAT PTT to NMEA type (for ICOM Marine Radios_
// Fix ACKMODE
// Add KISS over TCP
// Support ACKMode on VKISS
// Improved reporting of configuration file format errors
// Experimental driver to support ARQ sessions using UI frames
// Version 6.0.11.1 September 2015
// Fixes for IPGateway configuration and Virtual Circuit Mode
// Separate Portmapper from IPGateway
// Add PING Command
// Add ARDOP Driver
// Add basic APPLCALL support for PTC-PRO/Dragon 7800 Packet (using MYALIAS)
// Add "VeryOldMode" for KAM Version 5.02
// Add KISS over TCP Slave Mode.
// Support Pactor and Packet on P4Dragon on one port
// Add "Remote Staton Quality" to Web ROUTES display
// Add Virtual Host option for IPGateway NET44 Encap
// Add NAT for local hosts to IPGateway
// Fix setting filter from RADIO command for IC7410
// Add Memory Channel Scanning for ICOM Radios
// Try to reopen Rig Control port if it fails (could be unplugged USB)
// Fix restoring position of Monitor Window
// Stop Codec on Winmor and ARDOP when an interlocked port is attached (instead of listen false)
// Support APRS beacons in RP mode on Dragon//
// Change Virtual MAC address on IPGateway to include last octet of IP Address
// Fix "NOS Fragmentation" in IP over ax.25 Virtual Circuit Mode
// Fix sending I frames before L2 session is up
// Fix Flow control on Telnet outbound sessions.
// Fix reporting of unterminatred comments in config
// Add option for RigControl to not change mode on FT100/FT990/FT1000
// Add "Attach and Connect" for Telnet ports
// Version 6.0.12.1 November 2015
// Fix logging of IP addresses for connects to FBBPORT
// Allow lower case user and passwords in Telnet "Attach and Connect"
// Fix possible hang in KISS over TCP Slave mode
// Fix duplicating LinBPQ process if running ARDOP fails
// Allow lower case command aliases and increase alias length to 48
// Fix saving long IP frames pending ARP resolution
// Fix dropping last entry from a RIP44 message.
// Fix displaying Digis in MH list
// Add port name to Monitor config screen port list
// Fix APRS command display filter and add port filter
// Support port names in BPQTermTCP Monitor config
// Add FINDBUFFS command to dump lost buffers to Debugview/Syslog
// Buffer Web Mgmt Edit Config output
// Add WebMail Support
// Fix not closing APRS Send WX file.
// Add RUN option to APRS Config to start APRS Client
// LinBPQ run FindLostBuffers and exit if QCOUNT < 5
// Close and reopen ARDOP connection if nothing received for 90 secs
// Add facility to bridge traffic between ports (similar to APRS Bridge but for all frame types)
// Add KISSOPTION TRACKER to set SCS Tracker into KISS Mode
// 6.0.13.1
// Allow /ex to exit UNPROTO mode
// Support ARQBW commands.
// Support IC735
// Fix sending ARDOP beacons after a busy holdoff
// Enable BPQDED driver to beacon via non-ax.25 ports.
// Fix channel number in UZ7HO monitoring
// Add SATGate mode to APRSIS Code.
// Fix crash caused by overlong user name in telnet logon
// Add option to log L4 connects
// Add AUTOADDQuiet mode to AXIP.
// Add EXCLUDE processing
// Support WinmorControl in UZ7HO driver and fix starting TNC on Linux
// Convert calls in MAP entries to upper case.
// Support Linux COM Port names for APRS GPS
// Fix using NETROM serial protocol on ASYNC Port
// Fix setting MYLEVEL by scanner after manual level change.
// Add DEBUGLOG config param to SCS Pactor Driver to log serial port traffic
// Uue #myl to set SCS Pactor MYLEVEL, and add checklevel command
// Add Multicast RX interface to FLDIGI Driver
// Fix processing application aliases to a connect command.
// Fix Buffer loss if radio connected to PTC rig port but BPQ not configured to use it
// Save backups of bpq32.cfg when editing with Web interface and report old and new length
// Add DD command to SCS Pactor, and use it for forced disconnect.
// Add ARDOP mode select to scan config
// ARDOP changes for ARDOP V 0.5+
// Flip SSID bits on UZ7HO downlink connects
// Version 6.0.14.1
// Fix Socket leak in ARDOP and FLDIGI drivers.
// Add option to change CMS Server hostname
// ARDOP Changes for 0.8.0+
// Discard Terminal Keepalive message (two nulls) in ARDOP command hander
// Allow parameters to be passed to ARDOP TNC when starting it
// Fix Web update of Beacon params
// Retry connects to KISS ports after failure
// Add support for ARDOP Serial Interface Native mode.
// Fix gating APRS-IS Messages to RF
// Fix Beacons when PORTNUM used
// Make sure old monitor flag is cleared for TermTCP sessions
// Add CI-V antenna control for IC746
// Don't allow ARDOP beacons when connected
// Add support for ARDOP Serial over I2C
// Fix possble crash when using manual RADIO messages
// Save out of sequence L2 frames for possible reuse after retry
// Add KISS command to send KISS control frame to TNC
// Stop removing unused digis from packets sent to APRS-IS
// Processing of ARDOP PING and PINGACK responses
// Handle changed encoding of WL2K update responses.
// Allow anonymous logon to telnet
// Don't use APPL= for RP Calls in Dragon Single mode.
// Add basic messaging page to APRS Web Server
// Add debug log option to SCSTracker and TrkMulti Driver
// Support REBOOT command on LinBPQ
// Allow LISTEN command on all ports that support ax.25 monitoring
// Version 6.0.15.1 Feb 2018
// partial support for ax.25 V2.2
// Add MHU and MHL commands and MH filter option
// Fix scan interlock with ARDOP
// Add Input source seiect for IC7300
// Remove % transparency from web terminal signon message
// Fix L4 Connects In count on stats
// Fix crash caused by corrupt CMSInfo.txt
// Add Input peaks display to ARDOP status window
// Add options to show time in local and distances in KM on APRS Web pages
// Add VARA support
// Fix WINMOR Busy left set when port Suspended
// Add ARDOP-Packet Support
// Add Antenna Switching for TS 480
// Fix possible crash in Web Terminal
// Support different Code Pages on Console sessions
// Use new Winlink API interface (api.winlink.org)
// Support USB/ACC switching on TS590SG
// Fix scanning when ARDOP or WINMOR is used without an Interlocked Pactor port.
// Set NODECALL to first Application Callsign if NODE=0 and BBSCALL not set.
// Add RIGCONTROL TUNE and POWER commands for some ICOM and Kenwwod rigs
// Fix timing out ARDOP PENDING Lock
// Support mixed case WINLINK Passwords
// Add TUNE and POWER Rigcontol Commands for some radios
// ADD LOCALTIME and DISPKM options to APRS Digi/Igate
// 6.0.16.1 March 2018
// Fix Setting data mode and filter for IC7300 radios
// Add VARA to WL2KREPORT
// Add trace to SCS Tracker status window
// Fix possible hang in IPGATEWAY
// Add BeacontoIS parameter to APRSDIGI. Allows you to stop sending beacons to APRS-IS.
// Fix sending CTEXT on WINMOR sessions
// 6.0.17.1 November 2018
// Change WINMOR Restart after connection to Restart after Failure and add same option to ARDOP and VARA
// Add Abort Connection to WINMOR and VARA Interfaces
// Reinstate accidentally removed CMS Access logging
// Fix MH CLEAR
// Fix corruption of NODE table if NODES received from station with null alias
// Fix loss of buffer if session closed with something in PARTCMDBUFFER
// Fix Spurious GUARD ZONE CORRUPT message in IP Code.
// Remove "reread bpq32.cfg and reconfigure" menu options
// Add support for PTT using CM108 based soundcard interfaces
// Datestamp Telnet log files and delete old Telnet and CMSAcces logs
// 6.0.18.1 January 2019
// Fix validation of NODES broadcasts
// Fix HIDENODES
// Check for failure to reread config on axip reconfigure
// Fix crash if STOPPORT or STARTPORT used on KISS over TCP port
// Send Beacons from BCALL or PORTCALL if configured
// Fix possible corruption of last entry in MH display
// Ensure RTS/DTR is down when opening PTT Port
// Remove RECONFIG command
// Preparations for 64 bit version
// 6.0.19 Sept 2019
// Fix UZ7HO interlock
// Add commands to set Centre Frequency and Modem with UZ7HO Soundmodem (on Windows only)
// Add option to save and restore MH lists and SAVEMH command
// Add Frequency (if known) to UZ7HO MH lists
// Add Gateway option to Telnet for PAT
// Try to fix SCS Tracker recovery
// Ensure RTS/DTR is down on CAT port if using that line for PTT
// Experimental APRS Messaging in Kernel
// Add Rigcontrol on remote PC's using WinmorControl
// ADD VARAFM and VARAFM96 WL2KREPORT modes
// Fix WL2K sysop update for new Winlink API
// Fix APRS when using PORTNUM higher than the number of ports
// Add Serial Port Type
// Add option to linbpq to log APRS-IS messages.
// Send WL2K Session Reports
// Drop Tunneled Packets from 44.192 - 44.255
// Log incoming Telnet Connects
// Add IPV4: and IPV6: overrides on AXIP Resolver.
// Add SessionTimeLimit to HF sessions (ARDOP, SCSPactor, WINMOR, VARA)
// Add RADIO FREQ command to display current frequency
// 6.0.20 April 2020
// Trap and reject YAPP file transfer request.
// Fix possible overrun of TCP to Node Buffer
// Fix possible crash if APRS WX file doesn't have a terminating newline
// Change communication with BPQAPRS.exe to restore old message popup behaviour
// Preparation for 64 bit version
// Improve flow control on SCS Dragon
// Fragment messages from network links to L2 links with smaller paclen
// Change WL2K report rate to once every two hours
// Add PASS, CTEXT and CMSG commands and Stream Switch support to TNC2 Emulator
// Add SessionTimeLimit command to HF drivers (ARDOP, SCSPactor, WINMOR, VARA)
// Add links to Ports Web Manangement Page to open individual Driver windows
// Add STOPPORT/STARTPORT support to ARDOP, KAM and SCSPactor drivers
// Add CLOSE and OPEN RADIO command so Rigcontrol port can be freed fpr other use.
// Don't try to send WL2K Traffic report if Internet is down
// Move WL2K Traffic reporting to a separate thread so it doesn't block if it can't connect to server
// ADD AGWAPPL config command to set application number. AGWMASK is still supported
// Register Node Alias with UZ7HO Driver
// Register calls when UZ7HO TNC Restarts and at intervals afterwards
// Fix crash when no IOADDR or COMPORT in async port definition
// Fix Crash with Paclink-Unix when parsing ; VE7SPR-10 DE N7NIX QTC 1
// Only apply BBSFLAG=NOBBS to APPPLICATION 1
// Add RIGREONFIG command
// fix APRS RECONFIG on LinBPQ
// Fix Web Terminal scroll to end problem on some browsers
// Add PTT_SETS_INPUT option for IC7600
// Add TELRECONFIG command to reread users or whole config
// Enforce PACLEN on UZ7HO ports
// Fix PACLEN on Command Output.
// Retry axip resolver if it fails at startup
// Fix AGWAPI connect via digis
// Fix Select() for Linux in MultiPSK, UZ7HO and V4 drivers
// Limit APRS OBJECT length to 80 chars
// UZ7HO disconnect incoming call if no free streams
// Improve response to REJ (no F) followed by RR (F).
// Try to prevent more than MAXFRAME frames outstanding when transmitting
// Allow more than one instance of APRS on Linux
// Stop APRS digi by originating station
// Send driver window trace to main monitor system
// Improve handling of IPOLL messages
// Fix setting end of address bit on dest call on connects to listening sessions
// Set default BBS and CHAT application number and number of streams on LinBPQ
// Support #include in bpq32.cfg processing
// Version 6.0.21 14 December 2020
// Fix occasional missing newlines in some node command reponses
// More 64 bit fixes
// Add option to stop setting PDUPLEX param in SCSPACTOR
// Try to fix buffer loss
// Remove extra space from APRS position reports
// Suppress VARA IAMALIVE messages
// Add display and control of QtSoundModem modems
// Only send "No CMS connection available" message if fallbacktorelay is set.
// Add HAMLIB backend and emulator support to RIGCONTROL
// Ensure all beacons are sent even with very short beacon intervals
// Add VARA500 WL2K Reporting Mode
// Fix problem with prpcessing frame collector
// Temporarily disable L2 and L4 collectors till I can find problem
// Fix possible problem with interactive RADIO commands not giving a response,
// Incease maximum length of NODE command responses to handle maximum length INFO message,
// Allow WL2KREPORT in CONFIG section of UZ7HO port config.
// Fix program error in processing hamlib frame
// Save RestartAfterFailure option for VARA
// Check callsign has a winlink account before sending WL2KREPORT messages
// Add Bandwidth control to VARA scanning
// Renable L2 collector
// Fix TNCPORT reconnect on Linux
// Add SecureTelnet option to limit telnet outward connect to sysop mode sessions or Application Aliases
// Add option to suppress sending call to application in Telnet HOST API
// Add FT991A support to RigControl
// Use background.jpg for Edit Config page
// Send OK response to SCS Pactor commands starting with #
// Resend ICOM PTT OFF command after 30 seconds
// Add WXCall to APRS config
// Fixes for AEAPactor
// Allow PTTMUX to use real or com0com com ports
// Fix monitoring with AGW Emulator
// Derive approx position from packets on APRS ports with a valid 6 char location
// Fix corruption of APRS message lists if the station table fills up.
// Don't accept empty username or password on Relay sessions.
// Fix occasional empty Nodes broadcasts
// Add Digis to UZ7HO Port MH list
// Add PERMITTEDAPPLS port param
// Fix WK2K Session Record Reporting for Airmail and some Pactor Modes.
// Fix handling AX/IP (proto 93) frames
// Fix possible corruption sending APRS messages
// Allow Telnet connections to be made using Connect command as well as Attach then Connect
// Fix Cancel Sysop Signin
// Save axip resolver info and restore on restart
// Add Transparent mode to Telnet Server HOST API
// Fix Tracker driver if WL2KREPRRT is in main config section
// SNMP InOctets count corrected to include all frames and encoding of zero values fixed.
// Change IP Gateway to exclude handling bits of 44 Net sold to Amazon
// Fix crash in Web terminal when processing very long lines
// Version 6.0.22.1 August 2021
// Fix bug in KAM TNCEMULATOR
// Add WinRPR Driver (DED over TCP)
// Fix handling of VARA config commands FM1200 and FM9600
// Improve Web Termanal Line folding
// Add StartTNC to WinRPR driver
// Add support for VARA2750 Mode
// Add support for VARA connects via a VARA Digipeater
// Add digis to SCSTracker and WinRPR MHeard
// Separate RIGCONTROL config from PORT config and add RigControl window
// Fix crash when a Windows HID device doesn't have a product_string
// Changes to VARA TNC connection and restart process
// Trigger FALLBACKTORELAY if attempt to connect to all CMS servers fail.
// Fix saving part lines in adif log and Winlink Session reporting
// Add port specific CTEXT