Re: Bit order == byte order??

2011-03-04 Thread Erik Trulsson
On Fri, Mar 04, 2011 at 01:09:23AM -0800, per...@pluto.rain.com wrote: > Erik Trulsson wrote: > > On Thu, Mar 03, 2011 at 11:26:12AM -0500, Frank Solensky wrote: > > > In sys/netinet/ip.h, the first octet of the ip header structure > > > tests the byte ordering to determine the ordering of the hea

Re: Bit order == byte order??

2011-03-04 Thread perryh
Erik Trulsson wrote: > On Thu, Mar 03, 2011 at 11:26:12AM -0500, Frank Solensky wrote: > > In sys/netinet/ip.h, the first octet of the ip header structure > > tests the byte ordering to determine the ordering of the header > > length (ip_hl) and version (ip_v) fields. > > > > My question: that al

Re: Bit order == byte order??

2011-03-03 Thread Erik Trulsson
On Thu, Mar 03, 2011 at 11:26:12AM -0500, Frank Solensky wrote: > In sys/netinet/ip.h, the first octet of the ip header structure tests > the byte ordering to determine the ordering of the header length > (ip_hl) and version (ip_v) fields. > > My question: that always works? While my reading of t

Bit order == byte order??

2011-03-03 Thread Frank Solensky
In sys/netinet/ip.h, the first octet of the ip header structure tests the byte ordering to determine the ordering of the header length (ip_hl) and version (ip_v) fields. My question: that always works? While my reading of the language specification document leaves both the ordering of the bits