skb_* function to get pointer to udp payload
Hi,
I need to get a pointer to udp payload in my xtables module in following scenario:
1. From NF_INET_LOCAL_PREROUTING hook. As Transport headers are not yet initialized, may be i need to play with offsets like skb_header_pointer(skb, par->thoff,....). Not sure if its correct to use skb_header_pointer this way though.
2. From NF_INET_LOCAL_OUT. This time as transport fields are already initialized, i guess there is a direct function to get pointer to udp payload.
Thanks in advance.
Signature · 4 lines
Cheers aft [email protected]
Quoted 9 lines · Arif Hossain
Hi,
I need to get a pointer to udp payload in my xtables module in following scenario:
1. From
NF_INET_LOCAL_PREROUTINGhook. As Transport headers are not yet initialized, may be i need to play with offsets likeskb_header_pointer(skb, par->thoff,....). Not sure if its correct to useskb_header_pointerthis way though.
It is correct to use skb_h_p in either chain.