From 3b42658836359a9b6b6e79bf5ba0e8adcae613c2 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 3 Jul 2017 14:40:11 +0200 Subject: 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 --- src/ranap_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3