netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH nf-next 0/1] payload mangling support
@ 2015-11-09 14:10 Patrick McHardy
  2015-11-09 14:10 ` [RFC PATCH nf-next 1/1] netfilter: nft_payload: add packet " Patrick McHardy
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Patrick McHardy @ 2015-11-09 14:10 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

The following patch adds support for payload mangling. It supports updating
all fields except those included in pseudo headers since it only supports a
single checksum update operation. So it can not be used for stateless NAT.

Checksum updates currently only support internet checksums and assume the
mangled data is actually covered by the checksum. Userspace only allows use
for these protocols.

So the main questions is basically, do we want to support stateless NAT?
The downside is that we have to add protocol specific checksumming functions.


Patrick McHardy (1):
  netfilter: nft_payload: add packet mangling support

 include/net/netfilter/nf_tables_core.h   |   1 +
 include/uapi/linux/netfilter/nf_tables.h |   4 ++
 net/netfilter/nft_payload.c              | 116 +++++++++++++++++++++++++++++--
 3 files changed, 115 insertions(+), 6 deletions(-)

-- 
2.5.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-23 12:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-09 14:10 [RFC PATCH nf-next 0/1] payload mangling support Patrick McHardy
2015-11-09 14:10 ` [RFC PATCH nf-next 1/1] netfilter: nft_payload: add packet " Patrick McHardy
2015-11-23 12:31   ` Pablo Neira Ayuso
2015-11-23 12:45     ` Patrick McHardy
2015-11-09 15:22 ` [RFC PATCH nf-next 0/1] payload " Jan Engelhardt
2015-11-09 15:37   ` Patrick McHardy
2015-11-09 15:30 ` Florian Westphal
2015-11-09 15:41   ` Patrick McHardy
2015-11-09 15:50     ` Florian Westphal
2015-11-09 16:00       ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).