skb->sk->state netfilter hooks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux