From: =?iso-8859-1?q?Daryl=20ong?= Subject: Help in netfilter kernel module Date: Thu, 16 Oct 2003 10:55:27 +0800 (CST) Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20031016025527.23285.qmail@web13108.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1335691291-1066272927=:22511" Content-Transfer-Encoding: 8bit Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --0-1335691291-1066272927=:22511 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi i am a new developer in this netfilter module. i am developing a kernel module on a rehat linux 8 and using iptables v1.2.6a. i came across a problem when i want to kfree_skb(skb). When i compile my source code with this command: gcc -march=i486 -03 -D__KERNEL__ -DLINUX -DMODULE -DMODVERSIONS -I/lib/modules/linux/build/linclude -c test.c test.o, it compiles with no error. But when i try to insmod test.o. it prompts me an error with test.o: unresolved symbol __kfree_skb. i have try to use NF_DROP to drop the packet if it doesnt match what i want to filter away. But as netfilter currently didnt filter for PF_PACKET, my packet is able to go up to application layer. So i intended to use kfree_skb but encounter the error. Please tell me if there is any solutions. Thank you. Regards, Daryl Yahoo! Photos - A free party for the most "shiok" photo. Join now! --0-1335691291-1066272927=:22511 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi
   i am a new developer in this netfilter module.  i am developing a kernel module on a rehat linux 8 and using iptables v1.2.6a.  i came across a problem when i want to kfree_skb(skb).  When i compile my source code with this command: gcc -march=i486 -03 -D__KERNEL__ -DLINUX -DMODULE -DMODVERSIONS -I/lib/modules/linux/build/linclude -c test.c test.o, it compiles with no error.  But when i try to insmod test.o.  it prompts me an error with test.o: unresolved symbol __kfree_skb. 
 
i have try to use NF_DROP to drop the packet if it doesnt match what i want to filter away.  But as netfilter currently didnt filter for PF_PACKET, my packet is able to go up to application layer.  So i intended to use kfree_skb but encounter the error.  Please tell me if there is any solutions.  Thank you.
 
Regards,
Daryl

 Yahoo! Photos
- A free party for the most "shiok" photo. Join now! --0-1335691291-1066272927=:22511--