diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-07-22 20:56:59 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-07-22 20:56:59 +0100 |
| commit | 1f40ff4a07793ecfa679a1384053451c4f3f536f (patch) | |
| tree | c0813999c7216f98b4ac66224bd01589baee84d1 /asmstrucs.h | |
| parent | b128f2a43a16acef50de045ae6526772c04c395e (diff) | |
New upstream version 6.0.24.77+repackupstream/6.0.24.77+repack
Diffstat (limited to 'asmstrucs.h')
| -rw-r--r-- | asmstrucs.h | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/asmstrucs.h b/asmstrucs.h index 343ea83..79e9a26 100644 --- a/asmstrucs.h +++ b/asmstrucs.h @@ -176,8 +176,6 @@ typedef struct _TRANSPORTENTRY // We collect as much data as possible before compressing and re-packetizing
int AllowCompress;
- unsigned char * toCompress; // Data being saved to compress
- int toCompressLen;
unsigned char * unCompress; // Data being saved to uncompress
int unCompressLen;
@@ -255,6 +253,7 @@ typedef struct ROUTE #define GotRTTResponse 2 // Other end has sent us a RTT Response
#define GotRIF 4 // Other end has sent RIF, so is probably an INP3 Node
// (could just be monitoring RTT for some reason
+#define SentRTTRequest 8
#define SentOurRIF 16 // Set when we have sent a rif for our Call and any ApplCalls
// (only sent when we have seen both a request and response)
@@ -462,16 +461,18 @@ typedef struct _APPLCALLS // This way our times adjust to changes of neighbour SRTT. We can't cater for changes to other hop RTTs,
// But if these are significant (say 25% or 100 ms) they will be retransmitted
+// We treat the Routes as an array of 6. First 3 are NODES routes, next 3 are INP3 Routes. This works, but maybe is not ideal
+
typedef struct NR_DEST_ROUTE_ENTRY
{
struct ROUTE * ROUT_NEIGHBOUR; // POINTER TO NEXT NODE IN PATH
UCHAR ROUT_QUALITY; // QUALITY
UCHAR ROUT_OBSCOUNT;
UCHAR ROUT_LOCKED;
- UCHAR Padding[4]; // SO Entries are the same length
+ UCHAR Padding[4]; // So Entries are the same length
} *PNR_DEST_ROUTE_ENTRY;
-typedef struct DEST_ROUTE_ENTRY
+typedef struct INP3_DEST_ROUTE_ENTRY
{
struct ROUTE * ROUT_NEIGHBOUR; // POINTER TO NEXT NODE IN PATH
USHORT LastRTT; // Last Value Reported
@@ -495,8 +496,8 @@ typedef struct DEST_LIST UCHAR DEST_ROUTE; // CURRENTY ACTIVE DESTINATION
UCHAR INP3FLAGS;
- struct NR_DEST_ROUTE_ENTRY NRROUTE[3];// Best 3 NR neighbours for this dest
- struct DEST_ROUTE_ENTRY ROUTE[3]; // Best 3 INP neighbours for this dest
+ struct NR_DEST_ROUTE_ENTRY NRROUTE[3]; // Best 3 NR neighbours for this dest
+ struct INP3_DEST_ROUTE_ENTRY INP3ROUTE[3]; // Best 3 INP neighbours for this dest
void * DEST_Q; // QUEUE OF FRAMES FOR THIS DESTINATION
@@ -700,6 +701,7 @@ typedef struct PORTCONTROL BOOL NormalizeQuality; // Normalise Node Qualities
BOOL IgnoreUnlocked; // Ignore Unlocked routes
BOOL INP3ONLY; // Default to INP3 and disallow NODES
+ BOOL ALLOWINP3;
void (* UIHook)(struct _LINKTABLE * LINK, struct PORTCONTROL * PORT, MESSAGE * Buffer, MESSAGE * ADJBUFFER, UCHAR CTL, UCHAR MSGFLAG); // Used for KISSARQ
struct PORTCONTROL * HookPort;
@@ -725,6 +727,9 @@ typedef struct PORTCONTROL UCHAR * TX; // % Sending
UCHAR * BUSY; // % Active (Normally DCD active or TX)
+ int Hardware; // TNC H_TYPE. Copied here for access from application context
+
+
} PORTCONTROLX, *PPORTCONTROL;
typedef struct FULLPORTDATA
@@ -959,6 +964,21 @@ typedef struct _LINKTABLE int bytesRXed; // Info bytes only
int bytesTXed;
+ // Now support compressing L2 Sessions.
+ // We collect as much data as possible before compressing and re-packetizing
+
+ int AllowCompress;
+
+ unsigned char * unCompress; // Data being saved to uncompress
+ int unCompressLen;
+
+ int Sent;
+ int SentAfterCompression;
+
+ int Received;
+ int ReceivedAfterExpansion;
+
+
} LINKTABLE;
#pragma pack(1)
@@ -1067,7 +1087,11 @@ struct SEM int Gets;
int Rels;
DWORD SemProcessID;
+#ifdef WIN32
DWORD SemThreadID;
+#else
+ pthread_t SemThreadID;
+#endif
int Line; // caller file and line
char File[MAX_PATH];
};
@@ -1354,6 +1378,8 @@ struct arp_table_entry // SOCKET SourceSocket;
struct AXIPPORTINFO * PORT;
BOOL noUpdate; // Don't update dest address from incoming packet
+ BOOL replytoSourcePort; // Update map entry dest port from source port of each packet.
+ time_t LastHeard; // Last Packet received from this ststiom
};
|
