[grps] Fix GTP data_ind call back message creation

We'll need to push data both before and after, so make sure there
is both headroom & tailroom

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2010-06-09 20:49:24 +02:00 committed by Harald Welte
parent efbdee9a5c
commit 5914bad40b
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ static int cb_data_ind(struct pdp_t *lib, void *packet, unsigned int len)
}
mm = pdp->mm;
msg = msgb_alloc_headroom(len+128, 128, "GTP->SNDCP");
msg = msgb_alloc_headroom(len+256, 128, "GTP->SNDCP");
ud = msgb_put(msg, len);
memcpy(ud, packet, len);