From 367ab8fb01191ec54c91810b1896c41fdf7de911 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Sun, 9 Nov 2025 22:34:20 +0000 Subject: New upstream version 6.0.25.9+repack --- asmstrucs.h | 68 +++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 55 insertions(+), 13 deletions(-) (limited to 'asmstrucs.h') diff --git a/asmstrucs.h b/asmstrucs.h index 968f5fb..89e5277 100644 --- a/asmstrucs.h +++ b/asmstrucs.h @@ -42,7 +42,7 @@ typedef int (FAR *FARPROCY)(); #define L4INFO 5 // INFORMATION #define L4IACK 6 // INFORMATION ACK #define L4RESET 7 // Paula's extension - +#define L4CREQX 8 // Paula's extension extern char MYCALL[]; // 7 chars, ax.25 format extern char MYALIASTEXT[]; // 6 chars, not null terminated @@ -64,15 +64,6 @@ extern int ENDOFDATA; extern int L3LIVES; extern int NUMBEROFNODES; -struct CMDX -{ - char String[12]; // COMMAND STRING - UCHAR CMDLEN; // SIGNIFICANT LENGTH -// VOID (*CMDPROC)(struct _TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, struct CMDX * CMD);// COMMAND PROCESSOR - VOID (*CMDPROC)();// COMMAND PROCESSOR - size_t CMDFLAG; // FLAG/VALUE Offset - -}; struct APPLCONFIG { @@ -186,6 +177,14 @@ typedef struct _TRANSPORTENTRY int Received; int ReceivedAfterExpansion; + int segsSent; + int segsRcvd; + int segsResent; + + int NRRID; + time_t NRRTime; + + int Service; // For Paula's Connnect to Service } TRANSPORTENTRY; @@ -229,13 +228,15 @@ typedef struct ROUTE BOOL INP3Node; BOOL NoKeepAlive; // Suppress Keepalive Processing int LastConnectAttempt; // To stop us trying too often + int ConnectionAttempts; - int Status; // + int Status; // + int OldBPQ; // Set if other end is BPQ sending RIF in mS int LastRTT; // Last Value Reported int RTT; // Current int SRTT; // Smoothed RTT int NeighbourSRTT; // Other End SRTT -// int RTTIncrement; // Average of Ours and Neighbours SRTT in 10 ms + int RTTIncrement; // Average of Ours and Neighbours SRTT in 10 ms - smoothed neighbor transport time (SNTT) in spec int BCTimer; // Time to next L3RTT Broadcast int Timeout; // Lost Response Timer int Retries; // Lost Response Count @@ -244,6 +245,13 @@ typedef struct ROUTE int OtherendsRouteQual; // Route quality used by other end. int OtherendLocked; // Route quality locked by ROUTES entry. int FirstTimeFlag; // Set once quality has been set by direct receive + int RemoteMAXRTT; // For INP3 + int RemoteMAXHOPS; + + char * TCPHost; // For NETROM over TCP + int TCPPort; + struct NRTCPSTRUCT * TCPSession; + struct addrinfo * TCPAddress; // Resolved Address } *PROUTE; @@ -701,7 +709,8 @@ typedef struct PORTCONTROL BOOL NormalizeQuality; // Normalise Node Qualities BOOL IgnoreUnlocked; // Ignore Unlocked routes BOOL INP3ONLY; // Default to INP3 and disallow NODES - BOOL ALLOWINP3; + BOOL ALLOWINP3; // Accept INP3 if offered by other end + BOOL ENABLEINP3; // Send INP3 RTT probes to discovered neighbours void (* UIHook)(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESSAGE * Buffer, MESSAGE * ADJBUFFER, UCHAR CTL, UCHAR MSGFLAG); // Used for KISSARQ struct PORTCONTROL * HookPort; @@ -966,6 +975,18 @@ typedef struct _LINKTABLE time_t ConnectTime; // For session stats int bytesRXed; // Info bytes only int bytesTXed; + int framesRXed; + int framesTXed; + int framesResent; + time_t LastStatusTime; + int LastStatusbytesRXed; + int LastStatusbytesTXed; + int maxQueued; + int intervalMaxQueued; + + uint64_t lastPSent; // Time last I frame with P bit sent in mS (for RTT Measurements) + int RTT; + // Now support compressing L2 Sessions. // We collect as much data as possible before compressing and re-packetizing @@ -981,6 +1002,8 @@ typedef struct _LINKTABLE int Received; int ReceivedAfterExpansion; + char ApplName[16]; + time_t lastStatusSentTime; } LINKTABLE; @@ -1472,6 +1495,25 @@ struct AXIPPORTINFO }; +struct CMDX +{ + char String[12]; // COMMAND STRING + UCHAR CMDLEN; // SIGNIFICANT LENGTH + VOID (*CMDPROC)(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, struct CMDX * CMD);// COMMAND PROCESSOR +// VOID (*CMDPROC)();// COMMAND PROCESSOR + size_t CMDFLAG; // FLAG/VALUE Offset + +}; + +struct NETROMX +{ + int ServiceNo; + char ServiceName[10]; +}; + +extern struct NETROMX SERVICES[]; +extern int NUMBEROFSSERVICES; + #define Disconnect(stream) SessionControl(stream,2,0) #define Connect(stream) SessionControl(stream,1,0) -- cgit v1.2.3