aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-03 14:40:11 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-06 13:53:42 +0000
commit3b42658836359a9b6b6e79bf5ba0e8adcae613c2 (patch)
treed0d9524079113202e7df83923394df4273a1926b
parent54e6e1fc3074a7ecd891a6895891bc32d04b33c2 (diff)
set RANAP msgb headroom to 512 (times two)
With a headroom of 256, the SGSN crashes with: msgb(0x6e3b90): Not enough headroom msgb_push (256 < 264) I'm not perfectly sure what amount of headroom is strictly necessary. The only reason to pick 512 is that it is twice the amount of 256. Change-Id: I9a193846902a0477af0873f78283c4f2bedaf5dd
-rw-r--r--src/ranap_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranap_common.c b/src/ranap_common.c
index a468229..13c913f 100644
--- a/src/ranap_common.c
+++ b/src/ranap_common.c
@@ -291,7 +291,7 @@ char *ranap_cause_str(const RANAP_Cause_t *cause)
static struct msgb *ranap_msgb_alloc(void)
{
- return msgb_alloc_headroom(1024+256, 256, "RANAP Tx");
+ return msgb_alloc_headroom(1024+512, 512, "RANAP Tx");
}
static struct msgb *_ranap_gen_msg(RANAP_RANAP_PDU_t *pdu)