Re: Extracting info from frag packet in pre route hook

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

 



On Saturday 2012-01-07 03:36, vivek rajagopalan wrote:

>On Thu, Jan 5, 2012 at 1:21 PM, Jan Engelhardt <jengelh@xxxxxxxxxx> wrote:
>> You need
>>
>>  struct udphdr *udph = skb_header_pointer(...)
>>
>
>This solved the problem, what offset to use was not clear to me
>initially but it eventually turned out to be 20. Thanks so much

The offset to use is of course ip_hdrlen(skb), not 20.

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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux