netfilter hook not work in 2.6 kernel
cyl <u8526505-/[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
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? I'd glad to provide more info about my program if anyone needs. Thanks very much. ------------------------------------------------------- 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