Wireshark-bugs: [Wireshark-bugs] [Bug 2548] wimax UL-MAP ext IE decode error
Date: Mon, 23 Jun 2008 02:40:06 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2548





--- Comment #10 from Frank Wang <frank.wang@xxxxxxxxxxx>  2008-06-23 02:40:06 PDT ---
the MACRO is all right. the problem is it uses the wrong one.

when the buffer pointed by p is network byte order, we should use pntohs, which
stands for "pointer net order to host order", no matter what host order it is.

when the buffer pointed by p is LE, we should use pletohs, which stands for
"pointer le order to host order".

these MACRO have nothing to do with the host order. they just change a certain
order to the host order, no matter what host order it is.

we choose these MACRO based on the byte order of the buffer, not the host. :)


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.