netfilter-devel April 2010 archive
Main Archive Page > Month Archives  > netfilter-devel archives
netfilter-devel: Re: Set pointer to TCP header in callback funct

Re: Set pointer to TCP header in callback function

From: Jan Engelhardt <jengelh_at_nospam>
Date: Wed Apr 14 2010 - 07:49:33 GMT
To: Justin Yaple <yaplej@gmail.com>

On Wednesday 2010-04-14 05:40, Justin Yaple wrote:
>
>tcph = (struct tcphdr *) (((u_int32_t *)payload) + (iph->ihl * 4));

You don't use both uint32_t and *4.
-- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html