Subject: Re: ntohs() and htons() usgae in the network stack

From: Florian Weimer <[email-masked]>
Date: Wed, 10 Jun 2009 16:10:16 +0200

* Kevin Wilson:

> So I wondered : when is ntohs(i) != htons(i) ?

Never, for ordinary endieanness.  The operation is an involution, that
is, its own inverse (like mirroring).

-- 
Florian Weimer                <[email-masked]>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99