diff options
| author | g8bpq <john.wiseman@cantab.net> | 2022-11-14 14:02:28 +0000 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2022-11-14 14:02:28 +0000 |
| commit | f4bc43f75d0ee3bea207e99f745fb5585b192f48 (patch) | |
| tree | 35b0fe081e832b475b9c9f7f7bee2615567aca9e /TNCCode.c | |
| parent | e3db09d2557584d2026b8801d972390507269714 (diff) | |
6.0.23.26
Diffstat (limited to 'TNCCode.c')
| -rw-r--r-- | TNCCode.c | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -1,5 +1,5 @@ /*
-Copyright 2001-2018 John Wiseman G8BPQ
+Copyright 2001-2022 John Wiseman G8BPQ
This file is part of LinBPQ/BPQ32.
@@ -97,6 +97,43 @@ VOID TNCTimerProc() }
}
+VOID SendSmartID(struct PORTCONTROL * PORT)
+{
+ struct _MESSAGE * ID = IDMSG;
+ struct _MESSAGE * Buffer;
+
+ PORT->SmartIDNeeded = 0;
+
+ Buffer = GetBuff();
+
+ if (Buffer)
+ {
+ memcpy(Buffer, ID, ID->LENGTH);
+
+ Buffer->PORT = PORT->PORTNUMBER;
+
+ // IF PORT HAS A CALLSIGN DEFINED, SEND THAT INSTEAD
+
+ if (PORT->PORTCALL[0] > 0x40)
+ {
+ memcpy(Buffer->ORIGIN, PORT->PORTCALL, 7);
+ Buffer->ORIGIN[6] |= 1; // SET END OF CALL BIT
+ }
+
+ // If Pactor Style add to UI_Q
+
+ if (PORT->PROTOCOL == 10 && PORT->TNC && PORT->TNC->Hardware != H_KISSHF && PORT->UICAPABLE)
+ {
+ EXTPORTDATA * EXTPORT = (EXTPORTDATA *) PORT;
+
+ C_Q_ADD(&EXTPORT->UI_Q, Buffer);
+ return;
+ }
+
+ PUT_ON_PORT_Q(PORT, Buffer);
+ }
+}
+
VOID SENDIDMSG()
{
|
