summaryrefslogtreecommitdiffstats
path: root/examples/nf-queue.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-08-20 23:22:32 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-08-20 23:30:36 +0200
commit91d2c947b473b3540be5474c7128a5fa4ce60934 (patch)
tree057fae93bb52b981e611dad7fd018bb578a702da /examples/nf-queue.c
parent8020c6705834cf62e9536d6bc278e3daa9bd8160 (diff)
src: add alternative API to set up packet buffer
pktb_setup_raw() is a new function to initialise a new struct pkt_buff. It takes the memory area to be used to store pkt_buff structure and the data. Data is attached to the packet buffer (not copied), ie. the packet buffer data points to the provided data pointer. pktb_head_size() is a new function to return the amount of memory to reserve for a new struct pkt_buff. Extend documentation pon pktb_alloc(). Mostly original patch from Duncan Roe <duncan_roe@optusnet.com.au>. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nf-queue.c')
0 files changed, 0 insertions, 0 deletions