On Oct 21, 2003, at 5:26 AM, [EMAIL PROTECTED] wrote:


line 189, replace (teredoh-th_orgport)^(0xFFFF) with ntohs(teredoh-th_orgport)^(0xFFFF)

teredoh->th_orgport is fetched with a "tvb_get_ntohs()" call, so it's already in host byte order...


line 193, replace (teredoh-th_iporgaddr)^(0xFFFFFFFF) with ntohl(teredoh-th_iporgaddr)^(0xFFFFFFFF)

...and IPv4 addresses in Ethereal are stored in network byte order, i.e., should be fetched with "tvb_memcpy()", which is what we do, so it's already in the right byte order.


Or am I missing something?

Reply via email to