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: Richard Sharpe <rsharpe@xxxxxxxxxx>
Date: Sat, 5 Oct 2002 13:17:06 +0930 (CST)
On Sat, 5 Oct 2002, pevee wrote:

> dear developer...
> 
> we are at the last satge of developing the dissector...:)
> one more question:-
> 
> (1) The USER_IP is in REVERSE order (shown as 222.250.168.192, in fact is
> 192.168.250.222)!!! How can I deal with it?

It is in network byte order. The tvb routines can deal with that! Either 
use tvb_get_ntohl or use one of the add routines to add the correct type: 
For example, FT_IPv4.

Please read the developer documents and look at packet-ip.c.

Regards
-----
Richard Sharpe, rsharpe@xxxxxxxxxx, rsharpe@xxxxxxxxx, 
sharpe@xxxxxxxxxxxx