On Tue, Dec 20, 2005 at 11:11:37PM -0500, Justin Pryzby wrote:
> Oh, I didn't see that.  Then you have to call ntohs() on it before
> doing any arithmetic operations on it, or interpretting it as an
> integer, as in your test.

Yes, that's what bit me.  I didn't realize that ntohs rather than ntols
(since I thought I was operating on a 32 bit int) was appropriate.  In
retrospect, it makes sense, but it wasn't obvious to me at the time.

Andrew


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to