From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Helight.Xu" Subject: [REPORT] may be wrong place #endif in include/linux/netfilter_ipv4.h Date: Sun, 31 Jan 2010 10:13:06 +0800 Message-ID: <4B64E732.3090507@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=JSxqjPQ7XSPQpeLGDvLZ7sJawLE8chlDWKOVz2QYA+Y=; b=BYhb0LuPLsLNlb2ey12Yfqom1aGBBHePrbLAqXiZ0BK2tikyCzl+hhXUVp/6sKB4Tg OQZzCzucg+L5JYaOqM+g3dI33UQa/E5qUVesNxHvHL7QzUt4SgwkyWLi5Sc4dWVG2hf0 IOujM1cP91lvYdKNWk7WJloVwvM6Dc2DhhbY4= Sender: netfilter-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org, Patrick McHardy , coreteam@netfilter.org Cc: linux-kernel@vger.kernel.org hi all gys: when I make LKM with netfilter on "NF_IP_PRE_ROUTING" point, but it was reported that "NF_IP_PRE_ROUTING" is not defined. but I am surely including , when I opened include/linux/netfilter_ipv4.h I found that "NF_IP_PRE_ROUTING" is in this lable : #ifndef __KERNEL__ ..... /* IP Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP_PRE_ROUTING 0 /* If the packet is destined for this box. */ #define NF_IP_LOCAL_IN 1 /* If the packet is destined for another interface. */ #define NF_IP_FORWARD 2 /* Packets coming from a local process. */ #define NF_IP_LOCAL_OUT 3 /* Packets about to hit the wire. */ #define NF_IP_POST_ROUTING 4 #define NF_IP_NUMHOOKS 5 #endif /* ! __KERNEL__ */ So I think the "endif" is ended a little early! -- Zhenwen Xu - Seven Helight Home Page: http://zhwen.org