skb_tail_pointer(skb) not work correctly. And point the udp header tail wrongly

175 Views Asked by At

On linux kernerl version 3.2.48.

As an udp server in kernel mod, skb_tail_pointer(skb) is not correct, it point the udp header tail, lossing the payload size. udphdr->len is right.

It is strange.

1

There are 1 best solutions below

0
On

it is possible that tail and data pointer points to the same location. skb_tail_pointer() return the starting tail address.

enter image description here