From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 19/27] xt_policy: use the new unoin nf_inet_addr Date: Tue, 08 Jan 2008 16:54:10 +0100 Message-ID: <47839CA2.5040303@trash.net> References: <47839B45.30005@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter Developer Mailing List To: Jan Engelhardt Return-path: Received: from stinky.trash.net ([213.144.137.162]:63286 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752272AbYAHP6K (ORCPT ); Tue, 8 Jan 2008 10:58:10 -0500 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Jan Engelhardt wrote: > On Jan 8 2008 16:48, Patrick McHardy wrote: >>> >>> +#ifdef __KERNEL__ >>> + struct { >>> + union nf_inet_addr saddr; >>> + union nf_inet_addr smask; >>> + union nf_inet_addr daddr; >>> + union nf_inet_addr dmask; >>> + }; >>> +#else >>> + struct { >>> + union xt_policy_addr saddr; >>> + union xt_policy_addr smask; >>> + union xt_policy_addr daddr; >>> + union xt_policy_addr dmask; >>> + }; >>> +#endif >> >> I really dislike this uglyness, but I've applied it since >> there it also doesn't make much sense to leave single files >> using their own address definition. >> > > It will all go away in a few years time > > Ehrm, how will userspace actually deal with it? I don't understand what you mean with this question.