<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a simple &#8216;hello world&#8217; Netfilter module</title>
	<atom:link href="http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/</link>
	<description>Mainly coding...</description>
	<lastBuildDate>Thu, 26 Jan 2012 09:11:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: kasireddi</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-909</link>
		<dc:creator>kasireddi</dc:creator>
		<pubDate>Mon, 07 Nov 2011 09:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-909</guid>
		<description>in    $ dmesg
  nf_register_hook is unknown..... like this coming

give me solution to overcome this . please .</description>
		<content:encoded><![CDATA[<p>in    $ dmesg<br />
  nf_register_hook is unknown&#8230;.. like this coming</p>
<p>give me solution to overcome this . please .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasireddi</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-908</link>
		<dc:creator>kasireddi</dc:creator>
		<pubDate>Mon, 07 Nov 2011 08:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-908</guid>
		<description>hi PAUL,

i got probelm as NF_IP_PRE_ROUTING not defined. 
i resolved as above  by changing
nfho.hooknum = NF_IP_PRE_ROUTING;
to
nfho.hooknum = NF_INET_PRE_ROUTING;

but if i do $sudo insmod firewall1.ko    i got following 
 
insmod: error inserting &#039;firewall1.ko&#039;: -1 Invalid parameters


how to resolve it  ??  please help</description>
		<content:encoded><![CDATA[<p>hi PAUL,</p>
<p>i got probelm as NF_IP_PRE_ROUTING not defined.<br />
i resolved as above  by changing<br />
nfho.hooknum = NF_IP_PRE_ROUTING;<br />
to<br />
nfho.hooknum = NF_INET_PRE_ROUTING;</p>
<p>but if i do $sudo insmod firewall1.ko    i got following </p>
<p>insmod: error inserting &#8216;firewall1.ko&#8217;: -1 Invalid parameters</p>
<p>how to resolve it  ??  please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: driquet</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-868</link>
		<dc:creator>driquet</dc:creator>
		<pubDate>Mon, 11 Jul 2011 12:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-868</guid>
		<description>To avoid that error, remplace :
 nfho.hooknum = NF_IP_PRE_ROUTING;
by 
nfho.hooknum = NF_INET_PRE_ROUTING;
.</description>
		<content:encoded><![CDATA[<p>To avoid that error, remplace :<br />
 nfho.hooknum = NF_IP_PRE_ROUTING;<br />
by<br />
nfho.hooknum = NF_INET_PRE_ROUTING;<br />
.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: driquet</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-867</link>
		<dc:creator>driquet</dc:creator>
		<pubDate>Mon, 11 Jul 2011 12:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-867</guid>
		<description>I just encounter the same error.
I don&#039;t think this header is build for kernel module.

But, an :
  7 #undef __KERNEL__
  8 #include 
  9 #define __KERNEL__ 
has solved the problem.

Is there any other solution that isn&#039;t that dirty ?</description>
		<content:encoded><![CDATA[<p>I just encounter the same error.<br />
I don&#8217;t think this header is build for kernel module.</p>
<p>But, an :<br />
  7 #undef __KERNEL__<br />
  8 #include<br />
  9 #define __KERNEL__<br />
has solved the problem.</p>
<p>Is there any other solution that isn&#8217;t that dirty ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dporter</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-857</link>
		<dc:creator>dporter</dc:creator>
		<pubDate>Thu, 30 Jun 2011 20:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-857</guid>
		<description>Paul,
Great post and just what I need.

I&#039;m trying to build this on a later kernel:
Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux

I can get the first program to compile, but the 2nd which introduces netfilter doesnt work for me.
I get this error:
error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)

Looking at the includes, this makes sense because that symbol in netfilter_ipv4.h is hidden behind an
ifndef __KERNEL__
And of course __KERNEL__ is defined so that makes NF_IP_PRE_ROUTING not defined.

Am I doing something wrong? or is my kernel just too different?

Thanks.</description>
		<content:encoded><![CDATA[<p>Paul,<br />
Great post and just what I need.</p>
<p>I&#8217;m trying to build this on a later kernel:<br />
Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux</p>
<p>I can get the first program to compile, but the 2nd which introduces netfilter doesnt work for me.<br />
I get this error:<br />
error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)</p>
<p>Looking at the includes, this makes sense because that symbol in netfilter_ipv4.h is hidden behind an<br />
ifndef __KERNEL__<br />
And of course __KERNEL__ is defined so that makes NF_IP_PRE_ROUTING not defined.</p>
<p>Am I doing something wrong? or is my kernel just too different?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunil shah</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-774</link>
		<dc:creator>sunil shah</dc:creator>
		<pubDate>Mon, 18 Oct 2010 15:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-774</guid>
		<description>to get rid of freezing problem change
sk_buff **skb
to 
sk_buff *skb

and 
socc_buff = * skb to
socc_buff = skb</description>
		<content:encoded><![CDATA[<p>to get rid of freezing problem change<br />
sk_buff **skb<br />
to<br />
sk_buff *skb</p>
<p>and<br />
socc_buff = * skb to<br />
socc_buff = skb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj Tanwar</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-195</link>
		<dc:creator>Pankaj Tanwar</dc:creator>
		<pubDate>Sun, 22 Nov 2009 03:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-195</guid>
		<description>Thanks Paul It&#039;s just I was trying to find</description>
		<content:encoded><![CDATA[<p>Thanks Paul It&#8217;s just I was trying to find</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kiddie</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-142</link>
		<dc:creator>Paul Kiddie</dc:creator>
		<pubDate>Mon, 02 Nov 2009 12:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-142</guid>
		<description>Hi Srudeep,

I was just in the process of writing my next post which deals with that, now live. You can find it at &lt;a href=&quot;http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/&quot; rel=&quot;nofollow&quot;&gt;http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/&lt;/a&gt;. Just requires some straighforward modifications to the hook_func function -- hope it helps,

Paul</description>
		<content:encoded><![CDATA[<p>Hi Srudeep,</p>
<p>I was just in the process of writing my next post which deals with that, now live. You can find it at <a href="http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/" rel="nofollow">http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/</a>. Just requires some straighforward modifications to the hook_func function &#8212; hope it helps,</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kiddie&#8217;s Blog : Creating a Netfilter kernel module which filters UDP packets</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-140</link>
		<dc:creator>Paul Kiddie&#8217;s Blog : Creating a Netfilter kernel module which filters UDP packets</dc:creator>
		<pubDate>Mon, 02 Nov 2009 12:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-140</guid>
		<description>[...] Last time we created a Netfilter kernel module which simply dropped all packets which gave the structure and functions that need to be implemented for a Netfilter module to work. [...]</description>
		<content:encoded><![CDATA[<p>[...] Last time we created a Netfilter kernel module which simply dropped all packets which gave the structure and functions that need to be implemented for a Netfilter module to work. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srudeep K</title>
		<link>http://www.paulkiddie.com/2009/10/creating-a-simple-hello-world-netfilter-module/comment-page-1/#comment-130</link>
		<dc:creator>Srudeep K</dc:creator>
		<pubDate>Thu, 29 Oct 2009 18:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=161#comment-130</guid>
		<description>Dear Paul,

       I went through your simple kernel module to drop all packets using netfilter hook. I have tried to access the packet headers and data using sk_buff structure. I have analyzed the kernel source code () and found out that there are three fields in the structure to access packet headers (transport_header, network_header and mac_header). I tried to extract source and destination IP addresses using network_header field. Unfortunately, I ended up with segmentation faults. Is there way to access packet data using sk_buff structure (like in kernel 2.4)? If so how can we get a pointer to packet data? How can we extract source and destination addresses? Please help me out....

Best Regards,
Srudeep K</description>
		<content:encoded><![CDATA[<p>Dear Paul,</p>
<p>       I went through your simple kernel module to drop all packets using netfilter hook. I have tried to access the packet headers and data using sk_buff structure. I have analyzed the kernel source code () and found out that there are three fields in the structure to access packet headers (transport_header, network_header and mac_header). I tried to extract source and destination IP addresses using network_header field. Unfortunately, I ended up with segmentation faults. Is there way to access packet data using sk_buff structure (like in kernel 2.4)? If so how can we get a pointer to packet data? How can we extract source and destination addresses? Please help me out&#8230;.</p>
<p>Best Regards,<br />
Srudeep K</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.paulkiddie.com @ 2012-02-07 23:29:02 -->
