From 24f74bf9c5c97f8b3ee4f6658e9dac41f93f41a4 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 23 Jul 2001 19:45:20 +0000 Subject: - Support NCP xon/xoff frames. - Support up to 256 channels on S5 --- ncpd/ncp.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'ncpd/ncp.h') diff --git a/ncpd/ncp.h b/ncpd/ncp.h index 1c4cbdc..abbf08e 100644 --- a/ncpd/ncp.h +++ b/ncpd/ncp.h @@ -35,7 +35,6 @@ class IOWatch; #define NCP_DEBUG_LOG 1 #define NCP_DEBUG_DUMP 2 -#define MAX_CHANNEL 8 class ncp { public: @@ -49,9 +48,11 @@ public: void send(int channel, bufferStore &a); void poll(); void reset(); + int maxLinks(); bool stuffToSend(); bool hasFailed(); bool gotLinkChannel(); + void setVerbose(short int); short int getVerbose(); void setLinkVerbose(short int); @@ -59,7 +60,7 @@ public: void setPktVerbose(short int); short int getPktVerbose(); short int getProtocolVersion(); - + private: enum c { MAX_LEN = 200, LAST_MESS = 1, NOT_LAST_MESS = 2 }; enum interControllerMessageType { @@ -78,15 +79,16 @@ private: void decodeControlMessage(bufferStore &buff); void controlChannel(int chan, enum interControllerMessageType t, bufferStore &command); char * ctrlMsgName(unsigned char); - + link *l; unsigned short verbose; - channel *channelPtr[MAX_CHANNEL+1]; - bufferStore messageList[MAX_CHANNEL+1]; - int remoteChanList[MAX_CHANNEL+1]; + channel **channelPtr; + bufferStore *messageList; + int *remoteChanList; bool failed; short int protocolVersion; linkChan *lChan; + int maxChannels; }; #endif -- cgit v1.2.3