Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754624Ab0GIJ4b (ORCPT ); Fri, 9 Jul 2010 05:56:31 -0400 Received: from borg.medozas.de ([188.40.89.202]:36477 "EHLO borg.medozas.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752501Ab0GIJ43 (ORCPT ); Fri, 9 Jul 2010 05:56:29 -0400 Date: Fri, 9 Jul 2010 11:56:26 +0200 (CEST) From: Jan Engelhardt To: "Michael S. Tsirkin" cc: Patrick McHardy , "David S. Miller" , Alexey Kuznetsov , "Pekka Savola (ipv6)" , James Morris , Hideaki YOSHIFUJI , linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, herbert.xu@redhat.com, kvm@vger.kernel.org Subject: Re: [PATCH] netfilter: add CHECKSUM target In-Reply-To: <20100708222913.GA4475@redhat.com> Message-ID: References: <20100708222913.GA4475@redhat.com> User-Agent: Alpine 2.01 (LSU 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 768 Lines: 23 On Friday 2010-07-09 00:29, Michael S. Tsirkin wrote: > > include/linux/netfilter_ipv4/ipt_CHECKSUM.h | 18 +++++++ > net/ipv4/netfilter/Kconfig | 16 ++++++ > net/ipv4/netfilter/Makefile | 1 + > net/ipv4/netfilter/ipt_CHECKSUM.c | 72 +++++++++++++++++++++++++++ New modules should use xt. >+static unsigned int >+checksum_tg(struct sk_buff *skb, const struct xt_action_param *par) >+{ >+ if (skb->ip_summed == CHECKSUM_PARTIAL) { >+ skb_checksum_help(skb); >+ } - {} -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/