From ba4c666a9f50efeaabb546629de320bdeb134500 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 19 May 2010 15:38:10 +0200 Subject: [GPRS] NS: Make sure we allocate NS packet with headroom for FR/GRE --- openbsc/include/openbsc/gprs_ns.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gprs_ns.h b/openbsc/include/openbsc/gprs_ns.h index 1ec66316..03603bc8 100644 --- a/openbsc/include/openbsc/gprs_ns.h +++ b/openbsc/include/openbsc/gprs_ns.h @@ -223,6 +223,10 @@ int gprs_nsvc_reset(struct gprs_nsvc *nsvc, uint8_t cause); int gprs_ns_vty_init(struct gprs_ns_inst *nsi); #define NS_ALLOC_SIZE 1024 - +#define NS_ALLOC_HEADROOM 20 +static inline struct msgb *gprs_ns_msgb_alloc(void) +{ + return msgb_alloc_headroom(NS_ALLOC_SIZE, NS_ALLOC_HEADROOM, "GPRS/NS"); +} #endif -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/a1200000.lock: No such file or directory (2)