aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-11-29 13:47:39 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2021-12-22 14:58:31 +0100
commit9fe1f9fb0b3197cdecaa55017d3afd7355e59c36 (patch)
tree666217e80ab72b8c2fb2ae7c408a4fdb477d004c /src/logging.c
parent28c438845f327f7f022a8adfc966a3670b8c8146 (diff)
Introduce CRC and FSM for IuUP (user plane) as used in 3G RTP data
Only support for SMpSDU mode is introduced in this commit. Not supported explicit list: - Transparent mode - ATM/AAL2 based Transport layer - GTP-U based Transport Layer - Iu Rate Control procedure - Time Alignment procedure APIs are provided to allocate the primitives properly inside the related msgb. This way primitives can be placed in the headroom, leaving the data part of the msgb for the IuUP payload, hence allowing re-use of the msgb and 0 copy of IuUP payload when forwarding data over RNL<->TNL. Since RNL and TNL primitives relu struct osmo_prim_header, which is not packed, they cannot be set to packed, and hence proper memory alignment in the msgb must be done to avoid misaligned accesses (Asan errors about it otherwise). Related: SYS#5516 Change-Id: Ibe356fa7b1abaca0091e368db8478e79c09c6cb0
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index 9497f288..e5c66f21 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -294,6 +294,12 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
.enabled = 1, .loglevel = LOGL_NOTICE,
.color = "\033[38;5;63m",
},
+ [INT2IDX(DLIUUP)] = {
+ .name = "DLIUUP",
+ .description = "Iu UP layer",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ .color = "\033[38;5;65m",
+ },
};
void assert_loginfo(const char *src)