summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-02-25 09:32:57 +0000
committerDave Hibberd <hibby@debian.org>2025-02-25 09:32:57 +0000
commitc858986248f9ee86835be732f413824c0e42d729 (patch)
treed9862674659f5e7f7d5852b632f8fc29d275f25f /CommonCode.c
parent64d58d0c5a01551f8bfc52291986d1b8d681aca5 (diff)
New upstream version 6.0.24.65+repackupstream/6.0.24.65+repack
Diffstat (limited to 'CommonCode.c')
-rw-r--r--CommonCode.c22
1 files changed, 15 insertions, 7 deletions
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);
}