From patchwork Fri Dec 20 05:53:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Duncan Roe X-Patchwork-Id: 1213922 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=optusnet.com.au Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47fHxX2V24z9sPJ for ; Fri, 20 Dec 2019 16:54:08 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbfLTFyI (ORCPT ); Fri, 20 Dec 2019 00:54:08 -0500 Received: from mail104.syd.optusnet.com.au ([211.29.132.246]:45285 "EHLO mail104.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbfLTFyH (ORCPT ); Fri, 20 Dec 2019 00:54:07 -0500 Received: from dimstar.local.net (n122-110-44-45.sun2.vic.optusnet.com.au [122.110.44.45]) by mail104.syd.optusnet.com.au (Postfix) with SMTP id A5AC2820003 for ; Fri, 20 Dec 2019 16:53:48 +1100 (AEDT) Received: (qmail 24157 invoked by uid 501); 20 Dec 2019 05:53:48 -0000 From: Duncan Roe To: pablo@netfilter.org Cc: netfilter-devel@vger.kernel.org Subject: [PATCH libnetfilter_queue 0/2] Add mangle functions for IPv6, IPv6/TCP and IPv6/UDP Date: Fri, 20 Dec 2019 16:53:46 +1100 Message-Id: <20191220055348.24113-1-duncan_roe@optusnet.com.au> X-Mailer: git-send-email 2.14.5 X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=X6os11be c=1 sm=1 tr=0 a=4DzML1vCOQ6Odsy8BUtSXQ==:117 a=4DzML1vCOQ6Odsy8BUtSXQ==:17 a=pxVhFHJ0LMsA:10 a=RSmzAf-M6YYA:10 a=uRtfhzloAAAA:20 a=Iuy8h-huI91oo4frHYsA:9 a=ubDO4clxTgye4MFiUn6k:22 a=pHzHmUro8NiASowvMSCR:22 a=n87TN5wuljxrRezIQYnT:22 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org As before, the nfq6 testbed program exercises the new functions. nfq6 is part of https://github.com/duncan-roe/nfq The TODO item in src/extra/checksum.c is because the pseudo-header used in udp & tcp checksums uses destination address from forwarding header if there is one. Not a big deal for now, I would say. Duncan Roe (2): src: more IPv6 checksum fixes src: add mangle functions for IPv6, IPv6/TCP and IPv6/UDP .../libnetfilter_queue/libnetfilter_queue_ipv6.h | 1 + .../libnetfilter_queue/libnetfilter_queue_tcp.h | 1 + .../libnetfilter_queue/libnetfilter_queue_udp.h | 1 + src/extra/checksum.c | 10 +++--- src/extra/ipv6.c | 29 ++++++++++++++++ src/extra/tcp.c | 40 ++++++++++++++++++++++ src/extra/udp.c | 39 +++++++++++++++++++++ 7 files changed, 116 insertions(+), 5 deletions(-) --- 2.14.5