delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/16/07:42:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Date: Tue, 16 Mar 2010 02:41:58 -1000 (HST)
From: Antonio Querubin <tony AT lava DOT net>
To: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
cc: cygwin AT cygwin DOT com
Subject: Re: IPv6 help (Re: inetutils, r* commands)
In-Reply-To: <4B9EEF35.9000701@cwilson.fastmail.fm>
Message-ID: <alpine.OSX.2.00.1003160228590.452@cust11794.lava.net>
References: <4B9EEF35 DOT 9000701 AT cwilson DOT fastmail DOT fm>
User-Agent: Alpine 2.00 (OSX 1167 2008-08-23)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, 15 Mar 2010, Charles Wilson wrote:

> *********************
> QUESTION #2.  Is there a cleaner way to do the address matching than the
> version that I've modified below? I basically only changed the guts of
> soaddr_eq_ip(); the rest is factory equipment...
> *********************

You might find it simpler to just make all sockets/sockaddrs AF_INET6. 
The only time you might worry about the actual AF would be on display 
output.  Ie. display IPv4-mapped addresses as IPv4.

Antonio Querubin
808-545-5282 x3003
e-mail/xmpp:  tony AT lava DOT net

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019