From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,80a0636872aad0af X-Google-Attributes: gidfee84,public X-Google-Thread: 10e254,80a0636872aad0af X-Google-Attributes: gid10e254,public X-Google-ArrivalTime: 1993-07-21 18:51:42 PST Xref: gmd.de comp.unix.osf.osf1:664 news.software.nntp:3164 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uunet!not-for-mail From: rsalz@rodan.UU.NET (Rich Salz) Newsgroups: comp.unix.osf.osf1,news.software.nntp Subject: Re: INN on OSF Date: 21 Jul 1993 21:48:01 -0400 Organization: UUNET Technologies Inc, Falls Church, VA Distribution: inet Message-ID: <22krkhINNflq@rodan.UU.NET> References: <22iho9$dso@pirates.cs.swt.edu> <22jfme$f7p@paperboy.osf.org> <22ke4m$h2l@olivea.ATC.Olivetti.Com> NNTP-Posting-Host: rodan.uu.net 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$