From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Eder Subject: Re: [patch v2.2 1/4] [PATCH v2.1 1/4] netfilter: xt_ipvs (netfilter matcher for IPVS) Date: Mon, 3 May 2010 13:29:46 +0200 Message-ID: References: <20100501032014.406353538@vergenet.net> <20100501032120.298829234@vergenet.net> <4BDC543F.7060500@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Simon Horman , lvs-devel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter@vger.kernel.org, Wensong Zhang , Julius Volz , "David S. Miller" , Netfilter Development Mailinglist To: Patrick McHardy Return-path: In-Reply-To: <4BDC543F.7060500@trash.net> Sender: lvs-devel-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org Thank you for picking this series of patches up again and thanks for the feedback. I'll send an updated version in the next days. Cheers, -Hannes On Sat, May 1, 2010 at 18:18, Patrick McHardy wrote: > Simon Horman wrote: > >> @@ -0,0 +1,25 @@ >> +#ifndef _XT_IPVS_H >> +#define _XT_IPVS_H 1 > > You don't need to define a value. > >> +config NETFILTER_XT_MATCH_IPVS >> + =A0 =A0 tristate '"ipvs" match support' >> + =A0 =A0 depends on IP_VS >> + =A0 =A0 depends on NETFILTER_ADVANCED >> + =A0 =A0 help >> + =A0 =A0 =A0 This option allows you to match against IPVS propertie= s of a packet. >> + >> + =A0 =A0 =A0 If unsure, say N. > > You're using conntrack symbols, so this seems to need a dependency > on NF_CONNTRACK. > >> +static bool ipvs_mt_check(const struct xt_mtchk_param *par) > > We've changed the signature to "int" in nf-next to be able to > return errno codes. Please rebase your patches onto nf-next-2.6.git. > > Please also CC netfilter-devel at least for those parts that affect > non-IPVS netfilter. > >> +{ >> + =A0 =A0 if (par->family !=3D NFPROTO_IPV4 >> +#ifdef CONFIG_IP_VS_IPV6 >> + =A0 =A0 =A0 =A0 && par->family !=3D NFPROTO_IPV6 >> +#endif >> + =A0 =A0 =A0 =A0 =A0 =A0 ) { >> + =A0 =A0 =A0 =A0 =A0 =A0 pr_info("protocol family %u not supported\= n", par->family); >> + =A0 =A0 =A0 =A0 =A0 =A0 return false; >> + =A0 =A0 } >> + >> + =A0 =A0 return true; >> +} > >