| 245 | #endif |
| 246 | |
| 247 | void 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 | |
| 266 | void LlcEngine::llcWriteLowSide(ByteVector &bv,SgsnInfo *si) |
| 267 | { |
no test coverage detected