From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: queue and HTTP Date: Thu, 09 Nov 2006 12:14:50 +0100 Message-ID: <45530DAA.6040301@netfilter.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: miguel Angel Vazquez In-Reply-To: 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 miguel Angel Vazquez wrote: > Hello mates. > > I'm trying to intercept my own HTTP packages in the OUTPUT hook (I > don't want to use sniffers or ethereal). For that reason I've decided > to use the iptables-queue-modules...recently I can get all the > IP-header information using iphdr struct...but now I don't know how to > continue in order to get the INFO (HTTP packet). payload_offset = iph->ihl * 4 + tcph->doff * 4 -- The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris