From c858986248f9ee86835be732f413824c0e42d729 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 25 Feb 2025 09:32:57 +0000 Subject: New upstream version 6.0.24.65+repack --- CommonCode.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'CommonCode.c') diff --git a/CommonCode.c b/CommonCode.c index 18d412c..0866980 100644 --- a/CommonCode.c +++ b/CommonCode.c @@ -18,7 +18,6 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses */ - // General C Routines common to bpq32 and linbpq. Mainly moved from BPQ32.c #pragma data_seg("_BPQDATA") @@ -914,7 +913,7 @@ BOOL ProcessIncommingConnectEx(struct TNCINFO * TNC, char * Call, int Stream, BO sprintf(Msg, "%d SCANSTOP", TNC->Port); - Rig_Command( (TRANSPORTENTRY *) -1, Msg); + Rig_Command((TRANSPORTENTRY *) -1, Msg); UpdateMH(TNC, Call, '+', 'I'); } @@ -1493,8 +1492,8 @@ int SendMsgEx(int stream, char * msg, int len, int GetSem) if (QCOUNT < 50) return 0; // Dont want to run out - if (GetSem) - GetSemaphore(&Semaphore, 10); + if (GetSem) + GetSemaphore(&Semaphore, 10); if ((MSG = GetBuff()) == 0) { @@ -1623,7 +1622,7 @@ DllExport int APIENTRY SendRaw(int port, char * msg, int len) MSG->LENGTH = len + MSGHDDRLEN; - if (PORT->PROTOCOL == 10 && PORT->TNC && PORT->TNC->Hardware != H_KISSHF) // PACTOR/WINMOR Style + if (PORT->PROTOCOL == 10 && PORT->HWType != H_KISSHF) // PACTOR/WINMOR Style { // Pactor Style. Probably will only be used for Tracker unless we do APRS over V4 or WINMOR @@ -2687,6 +2686,14 @@ int DoRoutes() { if (Routes->NEIGHBOUR_CALL[0] != 0) { + // Dont save routes from config file here or they are difficult to get rid of + + if (Routes->NEIGHBOUR_FLAG & LOCKEDBYCONFIG) + { + Routes++; + continue; + } + len=ConvFromAX25(Routes->NEIGHBOUR_CALL,Normcall); Normcall[len]=0; @@ -2710,7 +2717,7 @@ int DoRoutes() digis[0] = 0; len=sprintf(line, - "ROUTE ADD %s %d %d %s %d %d %d %d %d\n", + "ROUTE ADD %s %d %d %s %d %d %d %d %d %c\n", Normcall, Routes->NEIGHBOUR_PORT, Routes->NEIGHBOUR_QUAL, digis, @@ -2718,7 +2725,8 @@ int DoRoutes() Routes->NBOUR_FRACK, Routes->NBOUR_PACLEN, Routes->INP3Node | (Routes->NoKeepAlive << 2), - Routes->OtherendsRouteQual); + Routes->OtherendsRouteQual, + (Routes->NEIGHBOUR_FLAG & LOCKEDBYSYSOP)?'!':' '); fputs(line, file); } -- cgit v1.2.3