From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike-Ro-Chanel Subject: Re: Adding packet metadata Date: Wed, 24 Mar 2004 08:38:09 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <40613AE1.4060800@yahoo.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Scott MacKay , Netfilter Developers List Return-path: To: Henrik Nordstrom In-Reply-To: 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 >>I wanted to mark up packets with information as they pass thru the >>system. Basically, I want to associate some data with a packet during >>PREROUTING/raw (to read info prior to conntrack) and then get that >>information back during PREROUTING/mangle. Is there a module already >>written which could perform this? > > > MARK should be able to do this. > An interesting question about MARK field in SKB structure is: Can I use all 32-bit of "nfmark" for adding metadata? Iptables front-end (from command line) seems to take mark value as a 8-bit number. Mike-Ro-Chanel