lvs-devel
|
To: | Jan Engelhardt <jengelh@xxxxxxxxxx> |
---|---|
Subject: | Re: [patch v2.6 4/4] libxt_ipvs: user-space lib for netfilter matcher xt_ipvs |
Cc: | lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netfilter@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, Malcolm Turnbull <malcolm@xxxxxxxxxxxxxxxx>, Wensong Zhang <wensong@xxxxxxxxxxxx>, Julius Volz <julius.volz@xxxxxxxxx>, Patrick McHardy <kaber@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Hannes Eder <heder@xxxxxxxxxx> |
From: | Simon Horman <horms@xxxxxxxxxxxx> |
Date: | Thu, 22 Jul 2010 15:57:55 +0900 |
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 lvs-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html |
Previous by Date: | Re: Fwd: LVS on local node, Eric Dumazet |
---|---|
Next by Date: | [patch v2.8 0/4] IPVS full NAT support + netfilter 'ipvs' match support, Simon Horman |
Previous by Thread: | Re: [patch v2.6 4/4] libxt_ipvs: user-space lib for netfilter matcher xt_ipvs, Jan Engelhardt |
Next by Thread: | [rfc] ipvs: Add ip_vs_onepacket_enabled(), Simon Horman |
Indexes: | [Date] [Thread] [Top] [All Lists] |