Date: Tue, 12 Mar 2002 17:27:27 -0800 From: "Crist J. Clark" <cjc@FreeBSD.org> To: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> Cc: alpha_byte@centras.lt, ryan@sasknow.com, freebsd-net@FreeBSD.org Subject: Re: help with tcp checksum Message-ID: <20020312172727.I29705@blossom.cjclark.org> In-Reply-To: <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu>; from tinguely@web.cs.ndsu.nodak.edu on Tue, Mar 12, 2002 at 09:38:34AM -0600 References: <003901c1c911$b5f90f30$a61b3bd4@alpha> <200203121538.g2CFcYA03380@web.cs.ndsu.nodak.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 12, 2002 at 09:38:34AM -0600, mark tinguely wrote:
> 
> just a PS reminder that you need to put the IP/ports in network byte
> order. appropriate htonl() and htons() must be used if the the values
> are not already in network byte order. You may get away with not doing
> this on a Sparc (or Alpha?) because of their endian is network byte
> order.
Well... It depends. Due to the nature of the checksum algorithm, it
really doesn't matter whether the data is in host order or network
order provided all of the data is stored consistently.
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020312172727.I29705>
