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

Method llcWriteLowSide

SGSNGGSN/LLC.cpp:266–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void 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//{

Callers 1

sgsnWriteLowSideMethod · 0.80

Calls 4

getSapiMethod · 0.80
trimRightMethod · 0.80
lleWriteLowSideMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected