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

Method llcWriteHighSide

SGSNGGSN/LLC.cpp:247–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245#endif
246
247void LlcEngine::llcWriteHighSide(ByteVector &sdu,int nsapi)
248{
249#if SNDCP_IN_PDP
250 PdpContext *pdp = mLleGmm.mSI->getPdp(nsapi);
251 if (!pdp) {
252 LLCWARN("llcWriteHighSide to unconfigured nsapi:"<<nsapi); // cant happen?
253 return;
254 }
255 Sndcp *sndcp = pdp->mSndcp1;
256#else
257 Sndcp *sndcp = mSndcp[nsapi];
258#endif
259 if (sndcp) {
260 sndcp->sndcpWriteHighSide(sdu);
261 } else {
262 assert(0); // not possible because Sndcp and PdpContext allocated/deallocated together.
263 }
264}
265
266void LlcEngine::llcWriteLowSide(ByteVector &bv,SgsnInfo *si)
267{

Callers 1

sgsnWriteHighSideMethod · 0.80

Calls 2

sndcpWriteHighSideMethod · 0.80
getPdpMethod · 0.45

Tested by

no test coverage detected