MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / queueFrontExistsAndIsNotTlliChangeCommand

Function queueFrontExistsAndIsNotTlliChangeCommand

GPRS/RLCEngine.cpp:127–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static bool queueFrontExistsAndIsNotTlliChangeCommand(MSInfo *ms)
128{
129 SGSN::GprsSgsnDownlinkPdu *dlmsg = ms->msDownlinkQueue.front();
130 if (!dlmsg) { return false; }
131 if (dlmsg->mTlli != ms->msTlli) {
132 // We will terminate the downlink TBF and leave this new TBF with
133 // the TLLI change command sitting in the queue to handle
134 // at the next time we talk to this MS.
135 LOGWATCHF("TLLI change command from %x to %x\n",(unsigned)ms->msTlli,(unsigned)dlmsg->mTlli);
136 return false;
137 }
138 return true;
139}
140
141// We leave persistent mode when mDownFinished is set.
142bool RLCDownEngine::dlPersistentMode() { return !mDownFinished && (gL2MAC.macDownlinkPersist > 0); }

Callers 2

dataAvailMethod · 0.85
engineFillBlockMethod · 0.85

Calls 1

frontMethod · 0.80

Tested by

no test coverage detected