[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <823aa8ch87.fsf@mid.bfk.de>
Date: Wed, 10 Jun 2009 16:10:16 +0200
From: Florian Weimer <fweimer@....de>
To: Kevin Wilson <wkevils@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: ntohs() and htons() usgae in the network stack
* 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 <fweimer@....de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists