extra: pktbuff: pktb_expand_tail return 0 if there is no room in the tail
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 20 Aug 2012 16:57:05 +0000 (18:57 +0200)
committerr.kubiak <r.kubiak@samsung.com>
Mon, 16 Nov 2015 13:12:06 +0000 (14:12 +0100)
commit7989032d47e4f8d90873a6ef845219195ff5e420
tree1902766ffc8d802fddef94aa7bbd4ec66bc8e758
parent8f4248f2945345460f80a430876d892efd8cdd2d
extra: pktbuff: pktb_expand_tail return 0 if there is no room in the tail

pktb_expand_tail returns 0 if there is no room for the mangling.
Note that we don't support dynamic reallocation, instead the
caller is responsible for allocating the extra room via pktb_alloc
according to the maximum amount of bytes it needs for the mangling.

Since pkt_buff layout is not exposed, we can change this in the
future if we prefer dynamic reallocation.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/extra/pktbuff.c