Ethereal-dev: Re: Re(2): [ethereal-dev] SCTP bakeoff experiences and more ...

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Mon, 03 Jul 2000 16:37:30 -0500
On Mon, Jul 03, 2000 at 09:35:09PM +0200, Michael.Tuexen@xxxxxxxxxxxxx wrote:
> I'm thinking on checking variable length parameters in SCTP. For example,
> there are IPV4 parameters, which have a type (from which you know what
> kind of parameter it is) and a length field. The length field MUST be 8.
> So I want to raise an exception when the parameter has the wrong length
> field. This corresponds to a malformed chunk, which means a corrupted
> SCTP sender (Something that may happen in developping a new protocol).
> That is why I want to raise exceptions explicitly.

I see. For that we'd need a new exception (#defined as an integer in
exceptions.h) and dissect_packet() in packet.c would have to catch it
and do something with it.

--gilbert