Re: netfilter hook not work in 2.6 kernel

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Op za, 03-09-2005 te 02:39 +0000, schreef cyl:
> Hi,
> 
> I used to write a kernel module that register a netfilter hook in 
> NF_BR_PRE_ROUTING and a network driver to which I can inject pcap file.My 
> network driver will simulate 2 network interfaces and I'll add them to a 
> bridge. Then every packet I inject will pass through the netfilter hook 
> function. That was done in kernel 2.4.
> Now I switch my program to kernel 2.6 and it does not work anymore. The data is 
> still injected to my network driver but it won't pass through the hook 
> function. I dump the data before calling netif_rx(skb) and the content is 
> correct. Is there any significant change on the behavior between kernel 2.4 and 
> 2.6?

The functionality provided by the bridge-nf patch for 2.4 is almost
identical to that in the 2.6 kernel.
Your problem is probably caused by changes in the networking stack,
which has probably changed considerably.

cheers,
Bart




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.