Nmap Development mailing list archives

Re: can not compile recent svn nmap on windows vc 2010


From: Henri Doreau <henri.doreau () gmail com>
Date: Sat, 18 May 2013 15:21:39 +0200

2013/5/18 David Fifield <david () bamsoftware com>:
On Fri, May 17, 2013 at 11:46:29PM +0200, Henri Doreau wrote:
NSOCK ERROR [157.9530s] mksock_set_broadcast(): Setting of
 SO_BROADCAST failed (IOD #52): Et ukjent ugyldig eller ikke st°ttet
 alternativ eller nivσ ble angitt i et getsockopt- eller setsockopt-kall
 (10042)

Using Win-XP SP3, MSVC 2010.

So this looks like attempts to apply SO_BROADCAST on SOCK_STREAM
sockets. We could simply not do it. David, is there any peculiar
reason why there's no check to restrict it to datagram sockets?

I don't know. Why wasn't this a problem before? What do "git blame" and
"git log -SSO_BROADCAST -p" say about the history? Your solution sounds
fine.

David Fifield
The error used to be reported only if nsock_trace was >0. I guess in
most case it was simply silenced out. With the nsock logging framework
I introduced recently, errors are displayed by default. This is the
only change I see.

I've pushed two patches (r30902 and r30903) that should improve the
situation. Please test and let me know if you encounter any issue.

Regards

--
Henri
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: