#include <SCTPAssociation.h>
SCTPStateVariables::SCTPStateVariables | ( | ) |
00137 { 00138 uint32 i; 00139 active = false; 00140 fork = false; 00141 initReceived = false; 00142 cookieEchoReceived = false; 00143 ackPointAdvanced = false; 00144 swsAvoidanceInvoked = false; 00145 firstChunkReceived = false; 00146 probingIsAllowed = false; 00147 zeroWindowProbing = true; 00148 alwaysBundleSack = true; 00149 fastRecoverySupported = true; 00150 reactivatePrimaryPath = false; 00151 fastRecoveryActive = false; 00152 newChunkReceived = false; 00153 dataChunkReceived = false; 00154 sackAllowed = false; 00155 fragment = false; 00156 resetPending = false; 00157 stopReceiving = false; 00158 stopOldData = false; 00159 stopSending = false; 00160 inOut = false; 00161 queueUpdate = false; 00162 firstDataSent = false; 00163 peerWindowFull = false; 00164 zeroWindow = false; 00165 appSendAllowed = true; 00166 noMoreOutstanding = false; 00167 primaryPathIndex = IPvXAddress("0.0.0.0"); 00168 lastUsedDataPath = IPvXAddress("0.0.0.0"); 00169 lastDataSourceAddress = IPvXAddress("0.0.0.0"); 00170 nextDest = IPvXAddress("0.0.0.0"); 00171 shutdownChunk = NULL; 00172 initChunk = NULL; 00173 cookieChunk = NULL; 00174 sctpmsg = NULL; 00175 initRexmitTimeout = SCTP_TIMEOUT_INIT_REXMIT; 00176 localRwnd = SCTP_DEFAULT_ARWND; 00177 errorCount = 0; 00178 initRetransCounter = 0; 00179 nextTSN = 0; 00180 cTsnAck = 0; 00181 lastTsnAck = 0; 00182 highestTsnReceived = 0; 00183 highestTsnAcked = 0; 00184 highestTsnStored = 0; 00185 nextRSid = 0; 00186 ackState = 0; 00187 lastStreamScheduled = 0; 00188 fastRecoveryExitPoint = 0; 00189 peerRwnd = 0; 00190 initialPeerRwnd = 0; 00191 assocPmtu = 0; 00192 queuedBytes = 0; 00193 messagesToPush = 0; 00194 pushMessagesLeft = 0; 00195 numGaps = 0; 00196 msgNum = 0; 00197 bytesRcvd = 0; 00198 queuedMessages = 0; 00199 queueLimit = 0; 00200 queuedRcvBytes = 0; 00201 probingTimeout = 1; 00202 numRequests = 0; 00203 for (i=0; i<100; i++) 00204 numMsgsReq[i] = 0; 00205 00206 for (i=0; i<MAX_GAP_COUNT; i++) 00207 { 00208 gapStartList[i] = 0; 00209 gapStopList[i] = 0; 00210 } 00211 00212 for (i=0; i<32;i++) 00213 { 00214 localTieTag[i]=0; 00215 peerTieTag[i]=0; 00216 } 00217 00218 count = 0; 00219 }
Referenced by SCTPAssociation::cloneAssociation(), SCTPAssociation::process_ASSOCIATE(), and SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPAssociation::processInitArrived(), and SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPAssociation::processDataArrived(), SCTPStateVariables(), and SCTPAssociation::updateGapList().
Referenced by SCTPAssociation::scheduleSack(), and SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPAssociation::cwndUpdateAfterSack(), and SCTPStateVariables().
Referenced by SCTPAssociation::sendAll(), and SCTPAssociation::stateEntered().
Referenced by SCTPAssociation::process_RCV_Message(), SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPStateVariables(), and SCTPAssociation::stateEntered().
Referenced by SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPAssociation::processDataArrived(), and SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPAssociation::process_SEND(), SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPAssociation::bytesAllowedToSend(), SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPStateVariables().
Referenced by SCTPAssociation::performStateTransition(), SCTPStateVariables(), and SCTPAssociation::sendAll().
Referenced by SCTPStateVariables().
Referenced by SCTPStateVariables().
Referenced by SCTPAssociation::cwndUpdateBytesAcked(), SCTPAssociation::getNextDestination(), SCTPAssociation::process_ABORT(), SCTPAssociation::process_CLOSE(), SCTPAssociation::process_PRIMARY(), SCTPAssociation::process_RCV_Message(), SCTPAssociation::process_SEND(), SCTPAssociation::process_TIMEOUT_HEARTBEAT(), SCTPAssociation::process_TIMEOUT_RTX(), SCTPAssociation::processAppCommand(), SCTPAssociation::processHeartbeatAckArrived(), SCTPAssociation::processInitAckArrived(), SCTPAssociation::processInitArrived(), SCTPStateVariables(), SCTPAssociation::sendAll(), SCTPAssociation::sendInit(), SCTPAssociation::sendInitAck(), SCTPAssociation::sendShutdownAck(), and SCTPAssociation::updateCounters().
Referenced by SCTPAssociation::pmDataIsSentOn(), and SCTPStateVariables().
Referenced by SCTPStateVariables().
std::list<uint32> SCTPStateVariables::dupList |
uint64 SCTPStateVariables::peerRwnd |
Referenced by SCTPAssociation::bytesAllowedToSend(), SCTPAssociation::initCCParameters(), SCTPAssociation::process_TIMEOUT_RTX(), SCTPAssociation::processHeartbeatAckArrived(), SCTPAssociation::processInitAckArrived(), SCTPAssociation::processInitArrived(), SCTPAssociation::processSackArrived(), SCTPStateVariables(), and SCTPAssociation::sendAll().
uint32 SCTPStateVariables::nextTSN |
uint32 SCTPStateVariables::cTsnAck |
Referenced by SCTPAssociation::advanceCtsna(), SCTPAssociation::createSack(), SCTPAssociation::processDataArrived(), SCTPAssociation::processInitAckArrived(), SCTPAssociation::processInitArrived(), SCTPAssociation::processTimer(), SCTPAssociation::removeFromGapList(), SCTPStateVariables(), SCTPAssociation::sendAll(), SCTPAssociation::sendInitAck(), SCTPAssociation::sendShutdown(), and SCTPAssociation::updateGapList().
Referenced by SCTPAssociation::processDataArrived(), and SCTPAssociation::processTimer().
uint32 SCTPStateVariables::lastTSN |
uint32 SCTPStateVariables::ackState |
uint32 SCTPStateVariables::numGaps |
Referenced by SCTPAssociation::advanceCtsna(), SCTPAssociation::createSack(), SCTPAssociation::processDataArrived(), SCTPAssociation::processTimer(), SCTPAssociation::removeFromGapList(), SCTPStateVariables(), SCTPAssociation::sendAll(), SCTPAssociation::tsnIsDuplicate(), and SCTPAssociation::updateGapList().
uint32 SCTPStateVariables::gapStartList[MAX_GAP_COUNT] |
uint32 SCTPStateVariables::gapStopList[MAX_GAP_COUNT] |
Referenced by SCTPStateVariables().
Referenced by SCTPStateVariables(), and SCTPAssociation::streamScheduler().
uint32 SCTPStateVariables::msgNum |
Referenced by SCTPAssociation::process_SEND(), and SCTPStateVariables().
Referenced by SCTPAssociation::processDataArrived(), and SCTPStateVariables().
Referenced by SCTPAssociation::process_OPEN_PASSIVE(), SCTPAssociation::pushUlp(), and SCTPStateVariables().
Referenced by SCTPAssociation::pushUlp(), and SCTPStateVariables().
uint32 SCTPStateVariables::count |
Referenced by SCTPStateVariables().
uint8 SCTPStateVariables::localTieTag[32] |
uint8 SCTPStateVariables::peerTieTag[32] |
Referenced by SCTPAssociation::process_SEND(), SCTPStateVariables(), and SCTPAssociation::sendAll().
uint16 SCTPStateVariables::header |
Referenced by SCTPAssociation::process_SEND(), and SCTPAssociation::stateEntered().
Referenced by SCTPStateVariables().
int32 SCTPStateVariables::numMsgsReq[100] |
Counter for init and cookie retransmissions
Referenced by SCTPAssociation::process_TIMEOUT_INIT_REXMIT(), SCTPStateVariables(), SCTPAssociation::sendShutdown(), and SCTPAssociation::sendShutdownAck().
simtime_t SCTPStateVariables::initRexmitTimeout |
Referenced by SCTPAssociation::process_ASSOCIATE(), SCTPAssociation::process_RCV_Message(), SCTPAssociation::process_TIMEOUT_INIT_REXMIT(), SCTPAssociation::process_TIMEOUT_SHUTDOWN(), SCTPAssociation::processInitAckArrived(), SCTPStateVariables(), SCTPAssociation::sendShutdown(), and SCTPAssociation::sendShutdownAck().
SCTPInitChunk* SCTPStateVariables::initChunk |
pointer to the init chunk data structure (for retransmissions)
Referenced by SCTPAssociation::retransmitInit(), SCTPStateVariables(), SCTPAssociation::sendInit(), and SCTPAssociation::stateEntered().
SCTPCookieEchoChunk* SCTPStateVariables::cookieChunk |
pointer to the cookie chunk data structure (for retransmissions)
Referenced by SCTPAssociation::processCookieAckArrived(), SCTPAssociation::retransmitCookieEcho(), SCTPStateVariables(), and SCTPAssociation::sendCookieEcho().
SCTPShutdownChunk* SCTPStateVariables::shutdownChunk |
pointer to the resetChunk (for retransmission)
Referenced by SCTPAssociation::process_RCV_Message(), SCTPAssociation::processTimer(), SCTPAssociation::retransmitShutdown(), SCTPStateVariables(), and SCTPAssociation::sendShutdown().
SCTPShutdownAckChunk* SCTPStateVariables::shutdownAckChunk |
Referenced by SCTPAssociation::process_RCV_Message(), and SCTPStateVariables().
Referenced by SCTPAssociation::dequeueOutboundDataMsg(), SCTPAssociation::process_SEND(), and SCTPStateVariables().
uint32 SCTPStateVariables::nextRSid |
Referenced by SCTPAssociation::pushUlp(), and SCTPStateVariables().
uint32 SCTPStateVariables::swsLimit |