Ethereal-dev: Re: [Ethereal-dev] How to access value of hdr.frag_len from subdissector?

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

From: Todd Sabin <tsabin@xxxxxxxxxxxxx>
Date: 17 Jun 2002 20:28:24 -0400
Guy Harris <gharris@xxxxxxxxx> writes:

> On Sat, Jun 15, 2002 at 10:21:56PM -0700, Jaime Fournier wrote:
> > I am trying to make a test in a disector for
> > packet-dceprc-epm.c in the
> > rpm_dissect_ept_lookup_rqst().
> > What I need to do is test if frag_length, as defined
> > in the dcerpc dissector is non zero.
> 
> Why do you need to test for that?
> 
> Is it ever valid for a fragment to have zero length - meaning that
> there's no actual stub body in the request or response?

Not relevant to the rest of the thread, but yes, that's possible.
E.g., in the mgmt interface, the request for rpc__mgmt_inq_if_ids has
no stub data.  (There are no [in] parameters.)


Todd