Ethereal-dev: Re: [Ethereal-dev] Creating a new Dissector

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

From: Brad Hards <bhards@xxxxxxxxxxxxxx>
Date: Wed, 2 Oct 2002 20:37:37 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 2 Oct 2002 19:58, pevee wrote:
> MessageAnybody knows what this function does:-
>
> (1) tvb_get_ntohs(tvb, offset);
takes the next 16 bits in the tvb, starting at byte number offset, which are 
assumed to be in network order (aka big-endian) and returns the value in host 
order "short" (so on intel machines, it swaps the bytes for you).

Brad
- -- 
http://conf.linux.org.au. 22-25Jan2003. Perth, Aust. Tickets booked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9msxxW6pHgIdAuOMRAoqLAJ9Djvxhnj8GF3Iu13J5g1Hesf2zJwCgnZpS
YaIw7w4B6VU6nVTQ+G7VMUw=
=mv+Z
-----END PGP SIGNATURE-----