🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #837

Re: DNS caching; is it *truly* possible to flush locally?

#837
From: Chris Croughton
Date: Sat, 27 Jul 1996 00:00
31 lines
2173 bytes
In article <838411052snz@dsl.co.uk>
           bhk@dsl.co.uk "Brian {Hamilton Kelly}" wrote:

>Goodness only knows when the error first occurred; presumably the author
>of the test on the ttl expected it to be a signed integer, as did the
>person writing the comment in the typedef.  Perhaps it was even correct
>at one stage, and someone has at some time obtruded the unwanted
>"unsigned" into the typedef.  The reason why I say it will be difficult
>to fix is that there are literally hundreds of variables declared as
>int32s: some of these may be meant to be signed, and some unsigned, and
>the code involving each will have to be examined to determine which is
>which.  I've counted 429 lines in the sources which mention int32, and
>that's without looking at the OS/2 specific files!

Ouch!  I'm facing a similar thing at work - porting from DOS to Win95,
and people have used 'int' freely through the code.  In a lot of cases
this shouldn't matter (16 vs. 32 bit) but there's a lot of
message-passing code which uses structures overlaid onto a byte stream.
Messy...

Thanks for finding that.

Since the code works at the moment, how about replacing all 'int32'
declarations with 'uint32', and then setting that one to the proper
'int32'?  There might still be other bugs caused by this, but doing that
shouldn't make anything worse than it is at present.

.-------------------------------.-------------------------------------.
|    chris@keris.demon.co.uk    |  FIAWOL (Filking Is A Way Of Life)  |
`-------------------------------^-------------------------------------'
Technical Details
Message-ID: <Snews.960727.045510.chris.317@keris.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <838060435snz@dsl.co.uk> <838306928snz.4895@grempc.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,467f920bc280412f
X-Google-Attributes: gid10bb05,public
From: Chris Croughton <chris@keris.demon.co.uk>
Subject: Re: DNS caching; is it *truly* possible to flush locally?
Date: 1996/07/27
Message-ID: <Snews.960727.045510.chris.317@keris.demon.co.uk>
X-Deja-AN: 170502892
x-mail2news-path: keris.demon.co.uk
x-nntp-posting-host: keris.demon.co.uk
references: <838060435snz@dsl.co.uk> <838306928snz.4895@grempc.demon.co.uk>
organization: Keristor Systems
newsgroups: demon.ip.developers