Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: rsalz@rodan.UU.NET (Rich Salz)
Subject: Re: INN on OSF
Date: 21 Jul 1993 21:48:01 -0400	[thread overview]
Message-ID: <22krkhINNflq@rodan.UU.NET> (raw)
In-Reply-To: 22ke4m$h2l@olivea.ATC.Olivetti.Com

In <22ke4m$h2l@olivea.ATC.Olivetti.Com> jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
>>Look for all "unsigned long" casts related to IP addresses, e.g., where
>>inet_addr is called.  Change them to "unsigned int".

>This portability issue came up way back when most systems went from
>16 bit ints to 32 bit.  Now it is starting to come up again as we
>start to migrate from 32 to 64.  You would think that people would
>learn.

Well, yeah, kind of sort of, but not exactly in this case.

CSRG was "hired" by DARPA to put TCP/IP into the Vax.  The Vax was a 32bit
machine.  IP stuff fit nicely into 32 bits.  You can't really blame CSRG
for not making all their code as portable as we all now would like it to
be, since we do now have a decade of hindsight, might prefer.

The DEC Alpha crew could have preserved source portability by keeping
long, and just masking off bits when they sent things out on the wire.
Instead, they made their job easier (and perhaps more correct) but made
everyone else's job harder.
	/r$


  reply	other threads:[~1993-07-22  1:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-21  4:47 INN on OSF Wuxu Peng
1993-07-21 13:18 ` Rich Salz
1993-07-21 21:57   ` Jerry Aguirre
1993-07-22  1:48     ` Rich Salz [this message]
1993-07-24  2:22     ` Tom Limoncelli
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox