Ethereal-dev: Re: [Ethereal-dev] Re: question on TLV

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

From: "Alok" <alokdube@xxxxxxxxxx>
Date: Tue, 13 Sep 2005 21:18:47 +0530
Yes but then why is that what is actually put on the wire?

For exampel i have a
Tag=85
Len=6
Value=0x(aabbccddeeff0000)

seems like 2 extra bytes for no reason.......
Is it documented anywhere that TLV has to be word aligned etc?

-thanks
Alok
----- Original Message ----- 
From: "Gilbert Ramirez" <gilbertr@xxxxxxxxx>
To: "Ethereal development" <ethereal-dev@xxxxxxxxxxxx>
Sent: Tuesday, September 13, 2005 8:19 PM
Subject: Re: [Ethereal-dev] Re: question on TLV


Yeah, I'd say it's very common to use bit sizes that match those  C
integers on common machines...  1 byte, 2 bytes, or 4 bytes.

--gilbert

On 9/13/05, Alok <alokdube@xxxxxxxxxx> wrote:
>
> rather
>
> does one tend to align to word boundaries/multiple of 32 bits...
>
>
>
> ----- Original Message ----- 
> From: Alok
> To: Ethereal development
> Sent: Tuesday, September 13, 2005 8:02 PM
> Subject: question on TLV
>
>
> I was working on a dissector here for some local stuff and noted that the
> protocol i was dissecting does not follow TLV in the best sense
>
> in other words at times a Tag type=X has length=6 bytes but the actual
value
> is sent as 8 bytes.
>
> Have people seen a general tendency to align TLV elements to octet
> boundaries?
>
> -thanks
> Alok
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>
>
>

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev