diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-12-08 15:14:05 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-12-16 19:36:09 +0100 |
commit | 4abc686d76b1d74ba07939f5e586842c68c37e25 (patch) | |
tree | a73951c8ca663a7878d24f0369faae7ff9953553 /src/rlc.cpp | |
parent | 392a5453361d639abe3eb50ec5ea7ace1595af04 (diff) |
edge: Add unified decoder methods for GPRS/EGPRS
This commit adds new RLC block decoder functions that support both
GPRS and EGPRS. The code path is selected based on the value of the
GprsCodingScheme cs object.
- rlc_parse_ul_data_header
parses the header of an RLC data block including the E and FBI/TI
flags (currently supported CS-1 - CS-4, MCS-1 - MCS-4).
- rlc_copy_to_aligned_buffer
copies an RLC data unit to a byte aligned buffer and returns
the unit's length.
- rlc_get_data_aligned
is a convenience wrapper around rlc_copy_to_aligned_buffer
that avoids copying if the data unit is already byte aligned.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rlc.cpp')
-rw-r--r-- | src/rlc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp index 42b602cb..9f5c61d9 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp @@ -20,6 +20,8 @@ #include "bts.h" #include "gprs_debug.h" +#include <errno.h> + extern "C" { #include <osmocom/core/utils.h> } |