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

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

From: alex volinsky <alexice71@xxxxxxxxx>
Date: Thu, 17 Jul 2008 19:58:37 -0700 (PDT)
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