Re: queuing pkts using nf_queue_handler in bridge (PF_BRIDGE) mode not working in 2.6 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanx for reply :-)

i just found tht.... (i put printks in nf_queue of
net/netfilter/nf_queue.c)... n i referred to afinfo of ipv4...

thanx again

On Wed, Feb 18, 2009 at 3:56 PM, Patrick McHardy <kaber@xxxxxxxxx> wrote:
> 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 :)
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux