[PATCH RFC libnetfilter_queue 0/1] Avoid packet copy in nfq_nlmsg_verdict_put_pkt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch demonstrates using sendmsg() to avoid the memcpy() in
nfq_nlmsg_verdict_put_pkt().

This is a catch-up to the libnfnetlink-based nfq_set_verdict() function family
which already used sendmsg() to avoid data copy.

The logic is implemented in a number of static functions.
These functions are proposed as a starting point for additions to
libnetfilter_queue and libmnl.

This patch is an RFC on these functions.

Duncan Roe (1):
  examples: Use sendmsg() to avoid packet copy in
    nfq_nlmsg_verdict_put_pkt()

 examples/nf-queue.c | 128 +++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 122 insertions(+), 6 deletions(-)

-- 
2.14.5




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux