ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] accessing field in IP header from L2TP dissector

From: "Luis EG Ontanon" <luis@xxxxxxxxxxx>
Date: Fri, 18 Jul 2008 18:01:43 +0200
He says the only interesting info there's in the IP header is the
length. If he needs it to calculate the length of the payload. There's
no need to access the IP header.The length  of the payload data is
passed to the dissector intrinsically by the tvb (tvb->length).

L
On Fri, Jul 18, 2008 at 11:04 AM, Géraud Berthomier
<geraud.berthomier@xxxxxxxxx> wrote:
> Hello Alex Volinsky,
>
> I think that you can have a look on the structure pinfo which have a
> packet-info type.
>
> Have a look in Wireshark/epan/packet-info.h
>
> Good luck!
>
> Byebye.
>
> 2008/7/18 alex volinsky <alexice71@xxxxxxxxx>:
>>
>> Hello everybody.
>> I'm adding DOCSIS DEPI dissector to Wireshark. The packet format is
>> Ethernet/ IPv4 / L2TPv3/ DEPI.  To parse DEPI payload correctly, I need to
>> know the packet length, which is obtained from IP header. One of the options
>> is to set my data pointer 18 bytes back in the beginning of L2TPv3 header
>> dissector, but I wonder if there is some function call to access a
>> field ("ip.len")of IP dissector from another file ?
>> Thanks everybody
>>
>> Alex Volinsky
>>
>> _______________________________________________
>> Wireshark-dev mailing list
>> Wireshark-dev@xxxxxxxxxxxxx
>> https://wireshark.org/mailman/listinfo/wireshark-dev
>>
>
>
>
> --
> Cordialement,
>
> Géraud Berthomier.
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-dev
>
>



-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan