Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-01

Re: [PATCH v3] netfilter/nflog: nflog-range does not truncate packets (userspace)

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2016-07-01 14:30:16
Also in: lkml, netfilter-devel

On Fri, Jun 24, 2016 at 04:42:31PM -0400, Vishwanath Pai wrote:
Added tests to libxt_NFLOG.t for the new option --nflog-size

--

netfilter/nflog: nflog-range does not truncate packets

The option --nflog-range has never worked, but we cannot just fix this
because users might be using this feature option and their behavior would
change. Instead add a new option --nflog-size. This option works the same
way nflog-range should have, and both of them are mutually exclusive. When
someone uses --nflog-range we print a warning message informing them that
this feature has no effect.

To indicate the kernel that the user has set --nflog-size we have to pass a
new flag XT_NFLOG_F_COPY_LEN.

Also updated the man page to reflect the new option and added tests to
extensions/libxt_NFLOG.t
Applied to iptables userspace, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help