Hi, I have a program that it need get the source address from the struct "skbuff", In the previous kernel version, I can get the "saddr" using the following line:
static __u32
get_src_ip(const struct sk_buff *skb){
return ntohl(skb->nh.iph->saddr);
}
The following is error message:
error: 'const struct sk_buff' has no member named 'nh'
Who can tell me the right code? thanks!