Nmap Development mailing list archives

Re: ncat should try connecting to all resolved addresses, not only the first one


From: Jaromir Koncicky <jkoncick () redhat com>
Date: Mon, 2 Sep 2013 12:26:24 -0400 (EDT)

I made a patch which adds this functionality: if one resolved address fails, next one is tried.
You can find it there: https://bugzilla.redhat.com/show_bug.cgi?id=978964#c6

I am not very familiar with the code, so I'd like to consult how to do this better. I don't think the way I made it is 
ideal and would like to make it more acceptable.
Thanks a lot for your feedback!

----- Original Message -----
From: "Jaromir Koncicky" <jkoncick () redhat com>
To: dev () nmap org
Sent: Thursday, August 29, 2013 10:18:58 AM
Subject: ncat should try connecting to all resolved addresses, not only the first one

This problem was already reported in Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=978964
As I described in my comment, ncat should try connecting to another address resolved by getaddrinfo(), if connecting to 
one fails.
In current situation, I cannot connect to a host whose hostname is resolved to more addresses, the first one resolved 
address is IPv6 and I cannot connect through IPv6.
I'm going to make a patch which would do this.
If you have anything to tell me or suggest about this, tell me. I will start making a patch and if I succeed, I'll post 
it here.
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: