sorry to bother, was a stupid question!
Bhavpreet Singh wrote:
Hi all,
i want to do something like this:
------------snip--------------
unsigned int hook_func(unsigned int hooknum,
struct sk_buff **skb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
struct sk_buff *skb_temp;
skb_temp = *skb;
printk("%c", skb_temp->sk->state);
return NF_ACCEPT;
}
----------snip-----------------
i am using netfilter hooks, and i get compilation error at the printk
statement
---------error-----------
dereferencing pointer to incomplete type
---------error------------
Than-X in advance
/|\ /\ ><
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/