I am writing a kernel module which registers a netfilter hook. I am trying to get the ip address of the caller by using the sk_buff->saddr member. Is there a way
sk_buff->saddr
You can use strtol to convert each piece to it's integer form.