From: Kesava Srinivas [mailto:vunnavafuture@xxxxxxxxx] Thanks Jeff for the reply. Yes; after changing the double pointer to a Normal Pointer., I can see that ., "if" block was skipped. On Tue, Nov 22, 2011 at 12:50 AM, Jeff Haran <jharan@xxxxxxxxxxxxxx> wrote: From: kernelnewbies-bounces@xxxxxxxxxxxxxxxxx [mailto:kernelnewbies-bounces@xxxxxxxxxxxxxxxxx] On Behalf Of Kesava Srinivas HI Team, Which kernel version are you using? The function prototype of a netfilter hook does vary from kernel version to kernel version, but in the kernels I’ve seen the skb parameter is a typed sk_buff *skb, not sk_buff **skb. In other words, you get passed a pointer to the sk_buff, not the address of a pointer to an sk_buff. Jeff Haran
I am a bit surprised that you didn’t get a compiler warning when you built this. Type checking is your friend. 8^) Jeff Haran |
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies