From: "Moshe Ashkenazi" Subject: RE: libipq packet id Date: Thu, 26 Sep 2002 18:21:01 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <003801c26578$b48e22d0$97025a3e@SHAGWELL> References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: Return-path: To: "'Joost Remijn'" , "'James Morris'" 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 If have those two rules: 1 QUEUE icmp -- anywhere anywhere 2 QUEUE tcp -- anywhere anywhere tcp dpt:ftp mark return always zero and hook return 1 even the second rule queue the packet (I did ftp) Moshe Ashkenazi, -----Original Message----- From: Joost Remijn [mailto:remijnj@eidetica.com] Sent: Thursday, September 26, 2002 5:04 PM To: James Morris Cc: Moshe Ashkenazi; netfilter-devel@lists.netfilter.org Subject: Re: libipq packet id On Fri, 27 Sep 2002, James Morris wrote: > On Thu, 26 Sep 2002, Moshe Ashkenazi wrote: > > > Hi, All - > > > > I'm using libipq to retrieve packet from netfilter in userspace, and its > > work cool. > > > > My question is how can I know on userspace mode from which netfilter > > rule the packet arrive? > > > > This information is not passed to userspace. What about the mark and hook values in the struct ipq_packet_msg_t. That looks like a possibility to get some info from userspace about the rule. Joost > -- > James Morris > > > >