netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Ratnaraj Mirgal <ratnaraj20@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: queuing pkts using nf_queue_handler in bridge (PF_BRIDGE) mode not 	working in 2.6 kernel
Date: Wed, 18 Feb 2009 11:26:08 +0100	[thread overview]
Message-ID: <499BE240.6050204@trash.net> (raw)
In-Reply-To: <c6c752b20902171954k4439c1dsc7c311c4863deaef@mail.gmail.com>

Ratnaraj Mirgal wrote:
> Hi,
> 
> i'm trying a simple lkm tht register a hook in PF_BRIDGE protocol,
> also registers a queue_handler for the same.
> the hook function simply returns NF_QUEUE for all IP pakcets.
> 
> i'm trying this out in 2.6.18-8.el5 (centos 5.0)
> 
> it seems like pkts are queuing up, but the _problem_ is queue_handler
> is not getting invoked.
> plz refer to the code below.
> 
> (NOTE: the same program worked fine in my rh9 (ie 2.4 kernel), of
> course with minor nf API modification)

The bridge netfilter code doesn't register an afinfo with the
netfilter core, so queueing drops the packets. Its actually
not needed since bridge netfilter doesn't need to reroute anyways.
So you basically need to change the __nf_queue function to only
invoke the af-specific functions if an afinfo is available.

Patches welcome btw :)



  reply	other threads:[~2009-02-18 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18  3:54 queuing pkts using nf_queue_handler in bridge (PF_BRIDGE) mode not working in 2.6 kernel Ratnaraj Mirgal
2009-02-18 10:26 ` Patrick McHardy [this message]
2009-02-18 11:05   ` Ratnaraj Mirgal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=499BE240.6050204@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=ratnaraj20@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).