aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2016-09-02 15:44:12 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-23 02:42:46 +0000
commitba34a2fd73e9803d7e13e90c4fd7e803ce5dedaa (patch)
treea00dfb9cf41bdb71f8e777a0ef615b41c9aa0aa9
parent38d232ee5d2ceb045d9ad6d3a23afcb4972523f7 (diff)
gprs: Increase NS_ALLOC_SIZE to 3k
2k can be insufficient when responding with a STATUS message to a long LLC packet because the original message is included in the STATUS. Change-Id: I6f76751cfadf61e87ce4367a38907083e1c98562 Ticket: SYS#2967 Sponsored-by: On-Waves ehf
-rw-r--r--include/osmocom/gprs/gprs_ns.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/gprs/gprs_ns.h b/include/osmocom/gprs/gprs_ns.h
index 7c3b23c1..130d8c0f 100644
--- a/include/osmocom/gprs/gprs_ns.h
+++ b/include/osmocom/gprs/gprs_ns.h
@@ -23,7 +23,8 @@
"Alive Timer (Tns-alive) timeout\n" \
"Alive Timer (Tns-alive) number of retries\n"
-#define NS_ALLOC_SIZE 2048
+/* Educated guess - LLC user payload is 1500 bytes plus possible headers */
+#define NS_ALLOC_SIZE 3072
#define NS_ALLOC_HEADROOM 20
enum ns_timeout {