Re: pfil on bridge interface, looking for ether_header

2006-11-03 Thread Kevin Sanders
On 11/2/06, Andrew Thompson <[EMAIL PROTECTED]> wrote: On Thu, Nov 02, 2006 at 05:45:50PM -0800, Kevin Sanders wrote: > I've written a kernel module that has pfil_add_hook'ed into the pfil > framework. When my input packet filter function is called, I can > mtod(*m, struct IP *) to the IP header

Re: pfil on bridge interface, looking for ether_header

2006-11-02 Thread Andrew Thompson
On Thu, Nov 02, 2006 at 05:45:50PM -0800, Kevin Sanders wrote: > I've written a kernel module that has pfil_add_hook'ed into the pfil > framework. When my input packet filter function is called, I can > mtod(*m, struct IP *) to the IP header, but haven't found a way to > find the original ethernet

pfil on bridge interface, looking for ether_header

2006-11-02 Thread Kevin Sanders
I've written a kernel module that has pfil_add_hook'ed into the pfil framework. When my input packet filter function is called, I can mtod(*m, struct IP *) to the IP header, but haven't found a way to find the original ethernet header. (*m)->m_pkthdr.header always seems to be NULL (I'm not even