<?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 Netfilter kernel module which filters UDP packets</title>
	<atom:link href="http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/</link>
	<description>Mainly coding...</description>
	<lastBuildDate>Sun, 15 Aug 2010 18:23:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: prashant kapoor</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-718</link>
		<dc:creator>prashant kapoor</dc:creator>
		<pubDate>Fri, 11 Jun 2010 15:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-718</guid>
		<description>Hi Paul

Congrats , I think you have the best tutorial explaining netfilter kernel module.

If we make drastic changes to the packet that the packet is not at all recognizable and we want to send the packets back to the pre-routing, do we have to do something special?</description>
		<content:encoded><![CDATA[<p>Hi Paul</p>
<p>Congrats , I think you have the best tutorial explaining netfilter kernel module.</p>
<p>If we make drastic changes to the packet that the packet is not at all recognizable and we want to send the packets back to the pre-routing, do we have to do something special?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jashmi</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-649</link>
		<dc:creator>jashmi</dc:creator>
		<pubDate>Tue, 20 Apr 2010 16:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-649</guid>
		<description>Hi paul, 
 I am a beginer .I tried inserting this module and module insertion was successfull.But wen i sent traffic , system hangs.Any suggestion on what can be done for this problem.I changed NF_IP_PRE_ROUTING as NF_INET_PRE_ROUTING.</description>
		<content:encoded><![CDATA[<p>Hi paul,<br />
 I am a beginer .I tried inserting this module and module insertion was successfull.But wen i sent traffic , system hangs.Any suggestion on what can be done for this problem.I changed NF_IP_PRE_ROUTING as NF_INET_PRE_ROUTING.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Evans</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-316</link>
		<dc:creator>Ben Evans</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-316</guid>
		<description>Hi Paul,

Thanks for this series of articles - they&#039;ve been very useful so far.

One thing, is that neither this one nor the previous seem to work on Ubuntu 9 (2.6.28-16 kernel). The errors look like this:

bje@bje-desktop:~/projects/netfilter-test$ make
make -C /lib/modules/2.6.28-16-generic/build SUBDIRS=/home/bje/projects/netfilter-test modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-16-generic&#039;
  CC [M]  /home/bje/projects/netfilter-test/nfudp.o
/home/bje/projects/netfilter-test/nfudp.c: In function ‘init_module’:
/home/bje/projects/netfilter-test/nfudp.c:42: warning: assignment from incompatible pointer type
/home/bje/projects/netfilter-test/nfudp.c:43: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)
/home/bje/projects/netfilter-test/nfudp.c:43: error: (Each undeclared identifier is reported only once
/home/bje/projects/netfilter-test/nfudp.c:43: error: for each function it appears in.)
make[2]: *** [/home/bje/projects/netfilter-test/nfudp.o] Error 1
make[1]: *** [_module_/home/bje/projects/netfilter-test] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-16-generic&#039;
make: *** [default] Error 2

Examining linux/netfilter_ipv4.h seems to indicate that an #ifndef __KERNEL__ now extends further than it used to and is preventing NF_IP_PRE_ROUTING from being visible to the module. Something similar is suggested by:

http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results

Any thoughts as to what needs to be done to change these examples to work with a 2.6.28-16 or thereabouts kernel?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Thanks for this series of articles &#8211; they&#8217;ve been very useful so far.</p>
<p>One thing, is that neither this one nor the previous seem to work on Ubuntu 9 (2.6.28-16 kernel). The errors look like this:</p>
<p>bje@bje-desktop:~/projects/netfilter-test$ make<br />
make -C /lib/modules/2.6.28-16-generic/build SUBDIRS=/home/bje/projects/netfilter-test modules<br />
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-16-generic&#8217;<br />
  CC [M]  /home/bje/projects/netfilter-test/nfudp.o<br />
/home/bje/projects/netfilter-test/nfudp.c: In function ‘init_module’:<br />
/home/bje/projects/netfilter-test/nfudp.c:42: warning: assignment from incompatible pointer type<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: ‘NF_IP_PRE_ROUTING’ undeclared (first use in this function)<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: (Each undeclared identifier is reported only once<br />
/home/bje/projects/netfilter-test/nfudp.c:43: error: for each function it appears in.)<br />
make[2]: *** [/home/bje/projects/netfilter-test/nfudp.o] Error 1<br />
make[1]: *** [_module_/home/bje/projects/netfilter-test] Error 2<br />
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-16-generic&#8217;<br />
make: *** [default] Error 2</p>
<p>Examining linux/netfilter_ipv4.h seems to indicate that an #ifndef __KERNEL__ now extends further than it used to and is preventing NF_IP_PRE_ROUTING from being visible to the module. Something similar is suggested by:</p>
<p><a href="http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results" rel="nofollow">http://markmail.org/message/kvzvzc32v3htduin#query:netfilter_ipv4.h%20changes%20kernel+page:1+mid:chddq75k2cxjzuqr+state:results</a></p>
<p>Any thoughts as to what needs to be done to change these examples to work with a 2.6.28-16 or thereabouts kernel?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srudeep K</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-145</link>
		<dc:creator>Srudeep K</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-145</guid>
		<description>Is there any other way to do it? Is acess to the saddr field of iphdr structure is legal? or is there any other method to access it?</description>
		<content:encoded><![CDATA[<p>Is there any other way to do it? Is acess to the saddr field of iphdr structure is legal? or is there any other method to access it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srudeep K</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-144</link>
		<dc:creator>Srudeep K</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-144</guid>
		<description>Hi Paul,
       Thank you very much for the kind reply. Your second article helped me a lot. I have small doubt, if I want to acess the source and destination address from the ip header of the packet, is there any way to do it?  As we are looking for INET protocol family (pf = PF_INET) we should capture all ip packets and all packets should contain source address.  With this back ground I have tried using the saddr variable which is in iphdr structure (iphdr-&gt;saddr) but it gave me segmentation fault.  I am not able to debug this fault, my system just hangs.</description>
		<content:encoded><![CDATA[<p>Hi Paul,<br />
       Thank you very much for the kind reply. Your second article helped me a lot. I have small doubt, if I want to acess the source and destination address from the ip header of the packet, is there any way to do it?  As we are looking for INET protocol family (pf = PF_INET) we should capture all ip packets and all packets should contain source address.  With this back ground I have tried using the saddr variable which is in iphdr structure (iphdr-&gt;saddr) but it gave me segmentation fault.  I am not able to debug this fault, my system just hangs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kiddie&#8217;s Blog : Creating a &#8220;hello world&#8221; kernel module in linux</title>
		<link>http://www.paulkiddie.com/2009/11/creating-a-netfilter-kernel-module-which-filters-udp-packets/comment-page-1/#comment-141</link>
		<dc:creator>Paul Kiddie&#8217;s Blog : Creating a &#8220;hello world&#8221; kernel module in linux</dc:creator>
		<pubDate>Mon, 02 Nov 2009 12:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.paulkiddie.com/?p=186#comment-141</guid>
		<description>[...] Access packet headers within Netfilter hook [...]</description>
		<content:encoded><![CDATA[<p>[...] Access packet headers within Netfilter hook [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
