Linux Netfilter development
 help / color / mirror / Atom feed
* been a while...what happened to NFC_ALTERED?
@ 2008-09-25 22:38 Dave Horton
  2008-09-25 23:38 ` Jan Engelhardt
  2008-09-26  1:04 ` Philip Craig
  0 siblings, 2 replies; 10+ messages in thread
From: Dave Horton @ 2008-09-25 22:38 UTC (permalink / raw)
  To: netfilter-devel

I've hunted around a bit but can't find the answer to my question,  
even though it seems like it must be covered somewhere obvious -  
apologies in advance if I've missed it.

Here's my situation: I wrote a simple netfilter target a couple of  
years back, been running it on Redhat 3, 2.4 kernel successfully for  
quite a while.  I install it on the PREROUTING chain, and I mangle UDP  
packets; modifiying the source and destination addresses.  My code was  
then setting the NFC_ALTERED bit in the nf_cache of the sk_buff so  
that it would get re-processed by netfilter.  Everything fine.  Now I  
simply want to update my code to run on Centos 5, kernel 2.6.18 and  
iptables 1.4.  Whoa, now I find my kernel module doesn't compile  
because that data structure has changed.  If I remove that line of  
code, it compiles, but the packet forwarding does not work (and it  
seems like I stop getting packets routed to my target at all once I  
mangle the first one).

Can someone help me out?  What is the new improved way of indicating  
that I've changed a packet's header or body so that netfilter re- 
examines it?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-09-28 15:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25 22:38 been a while...what happened to NFC_ALTERED? Dave Horton
2008-09-25 23:38 ` Jan Engelhardt
2008-09-26  0:47   ` Horton, Dave
2008-09-26  1:12     ` Jan Engelhardt
2008-09-26  1:28       ` Horton, Dave
2008-09-26  1:32         ` Philip Craig
2008-09-26  1:38           ` Horton, Dave
2008-09-26  4:16             ` Philip Craig
2008-09-28 15:06       ` Horton, Dave
2008-09-26  1:04 ` Philip Craig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox