| 264 | } |
| 265 | |
| 266 | void LlcEngine::llcWriteLowSide(ByteVector &bv,SgsnInfo *si) |
| 267 | { |
| 268 | if (bv.size() < 2) { return; } |
| 269 | LlcFrame lframe(bv); |
| 270 | int llcsapi = lframe.getSapi(); |
| 271 | LLCDEBUG("llcWriteLowSide sapi="<<llcsapi); |
| 272 | LlcEntity *lle = getLlcEntity(llcsapi); |
| 273 | if (lle == 0) { |
| 274 | LLCWARN("LLC received PDU with unexpected SAPI="<<llcsapi); |
| 275 | // This is an "invalid frame" and shall be ignored without indication. |
| 276 | return; |
| 277 | } |
| 278 | // Chop off the parity. |
| 279 | // TODO: Check it. |
| 280 | lframe.trimRight(3); |
| 281 | lle->lleWriteLowSide(lframe); |
| 282 | } |
| 283 | |
| 284 | //LlcEntity * SgsnInfo::getLlcEntity(unsigned llcSapi) |
| 285 | //{ |
no test coverage detected