Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] [PATCH] Hostname lookups, third take.
Home

[Freeciv-Dev] [PATCH] Hostname lookups, third take.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] Hostname lookups, third take.
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: 22 Sep 2000 18:45:29 +0200

As promised, here is the (hopefully final) version of my hostname
lookup patch.  It does the following:

* Consolidate all the code that looks up hostnames in one function,
  look_up_host().

* Eliminate the isdigit(hostname[0]) bug.

* Include config.h in all .c files, since no one screamed when I
  suggested this.

* Attempts to deal correctly with all combinations of RFCs 2133, 2553,
  IPv4 and IPv6.  Rationales for doing things the way that they have
  been done are in the source.

After applying this patch you should:

* Add a configure test for inet_aton().  (I tested it by defining
  HAVE_INET_ATON directly.)

* Modify common/create_lsend.pl to include config.h .  (I didn't do
  this since I don't do perl.)

Attachment: host_lookup-3.diff
Description: Text Data

-- 
Big Gaute (not to be confused with LG)
The SAME WAVE keeps coming in and COLLAPSING like a rayon MUU-MUU..

[Prev in Thread] Current Thread [Next in Thread]