From: Brian L Subject: Pointers for writing packet mangling modules Date: Wed, 2 Nov 2005 19:14:14 +0000 (GMT) Message-ID: <20051102191414.83661.qmail@web25610.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: To: netfilter-devel@lists.netfilter.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hi, I have been experimenting with a module for altering the destination IP address for all packets on a given port at the PRE_ROUTING stage (don’t worry - I know this is something easily done with IPTables). Unfortunately, any examples/tutorials dealing with writing modules that use Netfilter always fall short of describing the necessary steps to take when altering the skbuff. Are the following steps necessary (judging from the NAT source code)? Calling skb_ip_make_writable Recalculating ip checksum Calling dst_release What else am I missing? Thanks, Brian ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com