From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC 6/9] snet: introduce snet_hooks.c and snet_hook.h Date: Sun, 3 Jan 2010 11:16:11 -0800 Message-ID: <20100103111611.36d01d30@nehalam> References: <1262437456-24476-1-git-send-email-sam@synack.fr> <1262437456-24476-7-git-send-email-sam@synack.fr> <20100102201303.GB27402@ioremap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Evgeniy Polyakov , linux-security-module@vger.kernel.org, Patrick McHardy , jamal , Neil Horman , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org To: Samir Bellabes Return-path: In-Reply-To: Sender: linux-security-module-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Sun, 03 Jan 2010 12:10:53 +0100 Samir Bellabes wrote: > I know it's ugly, but code in security hooks are duplicated. > functions (inline or not), which replace this macros, will resulte of > having lots of parameters. macros with external object seems to be the > most simple at this point. Macro's with references to thing outside of the argument are just plain wrong. They introduce bugs that humans don't see. --