summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-02-22 04:48:56 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-26 10:34:33 +0000
commit99273c7662b786a9c92d25282060dc791ee37a4a (patch)
treeab90d9ac562087124b4a8b664deff9d144b9d2b5 /include
parent5ec0cf5475a7b31efa3b122f53e6c2a0e1908c20 (diff)
enlarge gsm0808 msgb headroom
It should be large enough to prepend a struct osmo_scu_prim to pass down an SCCP stack (see libosmo-sccp). 264 should suffice, but pick the next larger power-of-two instead. In osmo-msc, I would like to prepend an osmo_prim to the msgb created by gsm0808 API, but turns out the headroom is too small: msgb(0x61700001b660): Not enough headroom msgb_push (126 < 264) Instead of always copying a msgb that has just that instant been created, it makes more sense to allocate sufficient headroom in the first place. Change-Id: I95729991eb49555f8bba60c5dc916131b03b6cf2
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/gsm0808.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h
index 35e7a8e3..a1345c38 100644
--- a/include/osmocom/gsm/gsm0808.h
+++ b/include/osmocom/gsm/gsm0808.h
@@ -29,8 +29,8 @@
#include <osmocom/gsm/gsm23003.h>
#include <osmocom/core/utils.h>
-#define BSSMAP_MSG_SIZE 512
-#define BSSMAP_MSG_HEADROOM 128
+#define BSSMAP_MSG_SIZE 1024
+#define BSSMAP_MSG_HEADROOM 512
struct sockaddr_storage;