Hi Pablo, Herewith pktb_alloc2() as you suggested. There is no malloc/free and data is only moved if extra > 0. Cheers ... Duncan. Duncan Roe (1): New faster pktb_alloc2 replaces pktb_alloc & pktb_free fixmanpages.sh | 6 +- include/libnetfilter_queue/pktbuff.h | 2 + src/extra/pktbuff.c | 204 +++++++++++++++++++++++++++++------ src/nlmsg.c | 14 ++- 4 files changed, 185 insertions(+), 41 deletions(-) -- 2.14.5