Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1430014

Re: [PATCH v2 1/2] netfilter/nflog: nflog-range does not truncate packets

From Pablo Neira Ayuso <pablo@netfilter.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] netfilter/nflog: nflog-range does not truncate packets
Date 2016-06-23 19:40 +0200
Message-ID <rNgLE-4Qw-19@gated-at.bofh.it> (permalink)
References <rMz42-172-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jun 21, 2016 at 02:58:46PM -0400, Vishwanath Pai wrote:
> netfilter/nflog: nflog-range does not truncate packets
> 
> li->u.ulog.copy_len is currently ignored by the kernel, we should truncate
> the packet to either li->u.ulog.copy_len (if set) or copy_range before
> sending it to userspace. 0 is a valid input for copy_len, so add a new
> flag to indicate whether this was option was specified by the user or not.
> 
> Add two flags to indicate whether nflog-size/copy_len was set or not.
> XT_NFLOG_F_COPY_LEN is for XT_NFLOG and NFLOG_F_COPY_LEN for nfnetlink_log
> 
> On the userspace side, this was initially represented by the option
> nflog-range, this will be replaced by --nflog-size now. --nflog-range would
> still exist but does not do anything.

Applied, thanks!

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] netfilter/nflog: nflog-range does not truncate packets Vishwanath Pai <vpai@akamai.com> - 2016-06-21 21:00 +0200
  Re: [PATCH v2 1/2] netfilter/nflog: nflog-range does not truncate  packets Pablo Neira Ayuso <pablo@netfilter.org> - 2016-06-23 19:40 +0200

csiph-web