Article View: news.software.nntp
Article #2054Re: INN on OSF
From: Rich Salz
Date: Thu, 22 Jul 1993 01:48
Date: Thu, 22 Jul 1993 01:48
22 lines
1798 bytes
1798 bytes
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$
Technical Details
Message-ID:
<22krkhINNflq@rodan.UU.NET>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.osf.osf1.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!not-for-mailReferences:
<22iho9$dso@pirates.cs.swt.edu> <22jfme$f7p@paperboy.osf.org> <22ke4m$h2l@olivea.ATC.Olivetti.Com>Show Full Headers
Complete Article Headers
Message-ID: <22krkhINNflq@rodan.UU.NET> Subject: Re: INN on OSF Date: Thu, 22 Jul 1993 01:48:01 +0000 From: rsalz@rodan.UU.NET (Rich Salz) References: <22iho9$dso@pirates.cs.swt.edu> <22jfme$f7p@paperboy.osf.org> <22ke4m$h2l@olivea.ATC.Olivetti.Com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.osf.osf1.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!not-for-mail Newsgroups: comp.unix.osf.osf1,news.software.nntp Organization: UUNET Technologies Inc, Falls Church, VA Lines: 21 Distribution: inet NNTP-Posting-Host: rodan.uu.net