[PATCH libnetfilter_queue 0/1] pktb_alloc2()

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

 



This iteration implements delayed data copy.
It obviates the need to explain to the users that they need to do their own
memcpy() and supply an 'extra' argument as suggested in regard to pktb_setup().

The user can examine data and decide whether a mangle is needed without
having done a memcpy() even if the mangle lengthens the packet.

examples/nf-queue.c is still to be done.

Duncan Roe (1):
  src: add pktb_alloc2() and pktb_head_size()

 fixmanpages.sh                       |   6 +-
 include/libnetfilter_queue/pktbuff.h |   4 +
 src/extra/ipv4.c                     |   8 +-
 src/extra/ipv6.c                     |   8 +-
 src/extra/pktbuff.c                  | 213 +++++++++++++++++++++++++++++------
 src/extra/tcp.c                      |  18 +++
 src/extra/udp.c                      |  18 +++
 src/internal.h                       |   2 +
 src/nlmsg.c                          |  14 ++-
 9 files changed, 245 insertions(+), 46 deletions(-)

--
2.14.5




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

  Powered by Linux