Nmap Development mailing list archives

Re: Ncat: socket bind error on Mac OS X


From: David Fifield <david () bamsoftware com>
Date: Sun, 27 Jul 2008 17:18:26 -0600

On Sun, Jul 27, 2008 at 05:48:22PM -0500, Kris Katterjohn wrote:
I think I have tracked this down. bind is being picky about the address
length. Currently do_listen is calling Bind with sizeof(srcaddr), which
is 128. If I change it to sizeof(struct sockaddr_in), which is 16, then
it works. Of course, that only works for IPv4 addresses, so it needs to
be based on the address family.

Sounds like a plan.  I'll commit a fix in a minute.

That fixes it for me.

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: