Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757561Ab0GVG6E (ORCPT ); Thu, 22 Jul 2010 02:58:04 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:42726 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753185Ab0GVG6A (ORCPT ); Thu, 22 Jul 2010 02:58:00 -0400 Date: Thu, 22 Jul 2010 15:57:55 +0900 From: Simon Horman To: Jan Engelhardt Cc: lvs-devel@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org, Malcolm Turnbull , Wensong Zhang , Julius Volz , Patrick McHardy , "David S. Miller" , Hannes Eder Subject: Re: [patch v2.6 4/4] libxt_ipvs: user-space lib for netfilter matcher xt_ipvs Message-ID: <20100722065751.GA17499@verge.net.au> References: <20100711090342.035149543@vergenet.net> <20100711090500.421568837@vergenet.net> <20100721012146.GC22966@verge.net.au> <20100721132159.GN6418@verge.net.au> <20100721134102.GA21188@verge.net.au> <20100722013817.GB15008@verge.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 27 On Thu, Jul 22, 2010 at 08:25:01AM +0200, Jan Engelhardt wrote: > > On Thursday 2010-07-22 03:38, Simon Horman wrote: > > > >I must confess that I'm not familiar with using enum in this way. > >Can I confirm that you are suggesting the following? > > > >enum { > > XT_IPVS_IPVS_PROPERTY = 1 << 0, /* all other options imply this one */ > > XT_IPVS_PROTO = 1 << 1, > > XT_IPVS_VADDR = 1 << 2, > > XT_IPVS_VPORT = 1 << 3, > > XT_IPVS_DIR = 1 << 4, > > XT_IPVS_METHOD = 1 << 5, > > XT_IPVS_VPORTCTL = 1 << 6, > > XT_IPVS_MASK = (1 << 7) - 1, > > XT_IPVS_ONCE_MASK = (XT_IPVS_MASK & ~XT_IPVS_IPVS_PROPERTY) > >}; > > Yes; You may drop the () in ONCE_MASK though. Thanks; and yes, silliness on my part. -- 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/