Ethereal-dev: Re: [Ethereal-dev] New dissector for content type multipart/mixed

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 9 Jan 2004 15:52:08 -0800

On Jan 9, 2004, at 3:41 PM, Anders Broman wrote:

Included files for a new dissector to ”dissect” content type=multipart/mixed as a first step to do
SIP-T dissection. Will try and do the ISUP part next, time permiting.

Some warnings:

packet-multipart_mixed.c:146:60: warning: multi-character character constant
packet-multipart_mixed.c: In function `dissect_multipart_mixed':
packet-multipart_mixed.c:126: warning: unused variable `next_offset'
packet-multipart_mixed.c:129: warning: unused variable `found_match'
packet-multipart_mixed.c: In function `dissect_header_and_body':
packet-multipart_mixed.c:248: warning: `found_match' might be used uninitialized in this function

Also, it's using "tvb_offset_exists()" in the main loop; that will stop at the end of the captured data, rather than the end of the real data - it should continue to the end of the real data, so that it throws the appropriate exception for short captures.