| 304 | |
| 305 | |
| 306 | unsigned L2Frame::SAPI() const |
| 307 | { |
| 308 | // Get the service access point indicator, |
| 309 | // assuming frame format A or B. |
| 310 | // See GSM 04.06 2.1, 2.3, 3.2. |
| 311 | // This assumes MSB-first field packing. |
| 312 | // (pat) If the frame is a primitive, the size is 0 and sapi is not saved in the L2Frame. |
| 313 | // The L3Frame will be rebound with the correct SAPI in L2LAPDm. |
| 314 | return size()>8 ? peekField(3,3) : SAPIUndefined; |
| 315 | } |
| 316 | |
| 317 | |
| 318 | unsigned L2Frame::LPD() const |
no outgoing calls
no test coverage detected