Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884Ab0AaCI6 (ORCPT ); Sat, 30 Jan 2010 21:08:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751400Ab0AaCI5 (ORCPT ); Sat, 30 Jan 2010 21:08:57 -0500 Received: from mail-pz0-f172.google.com ([209.85.222.172]:57337 "EHLO mail-pz0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229Ab0AaCIz (ORCPT ); Sat, 30 Jan 2010 21:08:55 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=cRCR+DrxZF7zt3mmezrkaTzSrXpWgrGk5GlUwPfS9b1kh9aVO9/sUJXi4yCyvrbJ3w a3nEPa6vyv9NPvcdRwzqkT7qg+Qrh/TaKlV4ZFfjylJywf+CMrm7d2C/DIcJkzHsTfqA 09U6NGkFAncM8Y4c6bRhHK/PaWtH0E1PZ8+nE= Message-ID: <4B64E732.3090507@gmail.com> Date: Sun, 31 Jan 2010 10:13:06 +0800 From: "Helight.Xu" User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org, Patrick McHardy , coreteam@netfilter.org CC: linux-kernel@vger.kernel.org Subject: [REPORT] may be wrong place #endif in include/linux/netfilter_ipv4.h Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 35 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 -- 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/