ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: RE: [Ethereal-dev] How to access low layer raw data when I decode the high layer

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Liu Chunfang-CCL083 <ChunfangLiu@xxxxxxxxxxxx>
Date: Thu, 5 Aug 2004 16:41:28 -0500
Maybe I gave a bad example. But I really want to know how to access low layer raw data when I decode the high layer protocol. Does the tvb_buffer have some functions to do that? 

-----Original Message-----
From: Guy Harris [mailto:gharris@xxxxxxxxx] 
Sent: Thursday, August 05, 2004 4:20 PM
To: Liu Chunfang-CCL083
Cc: ethereal-dev@xxxxxxxxxxxx
Subject: Re: [Ethereal-dev] How to access low layer raw data when I decode the high layer pro tocol


Liu Chunfang-CCL083 said:
> Does anyone know if I can access low layer raw data when I decode the 
> high layer protocol, for example, when I decode some protocols above 
> TCP, I need to access ETHERNET address?

There is no broad guarantee that there *is* an Ethernet address when you're decoding a protocol above TCP - TCP runs atop IP, which is a routable protocol, so even if you happen to send it over Ethernet on the first hop it might be routed over PPP, for example.

As such, I'm not sure why your dissector would *need* the Ethernet address; what are you trying to do there?