summaryrefslogtreecommitdiff
path: root/asmstrucs.h
diff options
context:
space:
mode:
Diffstat (limited to 'asmstrucs.h')
-rw-r--r--asmstrucs.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/asmstrucs.h b/asmstrucs.h
index 8a46075..343ea83 100644
--- a/asmstrucs.h
+++ b/asmstrucs.h
@@ -33,6 +33,7 @@ typedef int (FAR *FARPROCY)();
#define L4BUSY 0x80 // BNA - DONT SEND ANY MORE
#define L4NAK 0x40 // NEGATIVE RESPONSE FLAG
#define L4MORE 0x20 // MORE DATA FOLLOWS - FRAGMENTATION FLAG
+#define L4COMP 0x10 // BPQ Specific use of spare it - data is compressed
#define L4CREQ 1 // CONNECT REQUEST
#define L4CACK 2 // CONNECT ACK
@@ -40,6 +41,7 @@ typedef int (FAR *FARPROCY)();
#define L4DACK 4 // DISCONNECT ACK
#define L4INFO 5 // INFORMATION
#define L4IACK 6 // INFORMATION ACK
+#define L4RESET 7 // Paula's extension
extern char MYCALL[]; // 7 chars, ax.25 format
@@ -170,6 +172,23 @@ typedef struct _TRANSPORTENTRY
char APPL[16]; // Set if session initiated by an APPL
int L4LIMIT; // Idle time for this Session
+ // Now support compressing NetRom Sessions.
+ // 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;
+
+ int Sent;
+ int SentAfterCompression;
+
+ int Received;
+ int ReceivedAfterExpansion;
+
+
} TRANSPORTENTRY;
//
@@ -195,6 +214,9 @@ typedef struct ROUTE
UCHAR NEIGHBOUR_QUAL;
UCHAR NEIGHBOUR_FLAG; // SET IF 'LOCKED' ROUTE
+#define LOCKEDBYCONFIG 1
+#define LOCKEDBYSYSOP 2
+
struct _LINKTABLE * NEIGHBOUR_LINK; // POINTER TO LINK FOR THIS NEIGHBOUR
USHORT NEIGHBOUR_TIME; // TIME LAST HEARD (HH MM)
@@ -445,7 +467,8 @@ typedef struct NR_DEST_ROUTE_ENTRY
struct ROUTE * ROUT_NEIGHBOUR; // POINTER TO NEXT NODE IN PATH
UCHAR ROUT_QUALITY; // QUALITY
UCHAR ROUT_OBSCOUNT;
- UCHAR Padding[5]; // SO Entries are the same length
+ UCHAR ROUT_LOCKED;
+ UCHAR Padding[4]; // SO Entries are the same length
} *PNR_DEST_ROUTE_ENTRY;
typedef struct DEST_ROUTE_ENTRY
@@ -467,12 +490,12 @@ typedef struct DEST_LIST
UCHAR DEST_ALIAS[6];
UCHAR DEST_STATE; // CONTROL BITS - SETTING UP, ACTIVE ETC
+ UCHAR DEST_LOCKED;
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
void * DEST_Q; // QUEUE OF FRAMES FOR THIS DESTINATION
@@ -682,6 +705,7 @@ typedef struct PORTCONTROL
struct PORTCONTROL * HookPort;
int PortSlot; // Index in Port Table
struct TNCINFO * TNC; // Associated TNC record
+ int HWType; // Hardware type of Driver. In here as external apps don't have access to TNC record
int RIGPort; // Linked port for freq resporting
unsigned int PERMITTEDAPPLS; // Appls allowed on this port (generalisation of BBSBANNED)
char * CTEXT; // Port Specific CText