skb_* function to get pointer to udp payload

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

 



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. 
-- 
Cheers

aft
aftnix@xxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux