Hello, > If i remember correctly, net_rx_action sets > skb->nh.raw, atleast that's > how it old 2.4 used to work. Before netif_rx, the > skb->nh pointer is for > sure not initialized, No doubt, as not knowing about this, my code used to read the src/dest IPs from skb->nh in the eth->rx_hook and get the kernel into panic. I finally solved the problem by taking the iphdr from the skb->data. Keep in mind that I am talking about 2.4. BTW, should'nt we initialize the non-itialized poiters to NULL? hmm.. but maybe it's a bad suggestion in the context of the kernel alteast. ===== --------------------------------------------------------- "To teach how to live without certainty, and yet without being paralysed by hesitation, is perhaps the chief thing that philosophy, in our age, can still do for those who study it." --Bertrand Russell "According to all the rules (of Software Engineering) I knew, Linux should have been a disaster, but it was'nt. Instead it was something wonderfull" -- Eric Raymond __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/