On 10/14/07, Eddie Bell <ejlbell_at_we.hate.spammers
>
> I'm not sure about the portability of setsockopt but it looks like
> IP_RECVTTL/IP_RECVERR don't works on STREAM sockets, only DGRAM. So it
> may be possible to do this with udp but probably not any other
> protocols.
>
> I don't have proper internet access till Tuesday so will check this
> out in a little more detail then (and all the other nmap happenings
> that have occurred whilst I've been internet-less)
>
> thanks
> - eddie
>
If by portability you mean "across systems" and not "STREAM vs DGRAM", it
looks like Nmap uses setsockopt (without #ifdef or anything) for setting
SO_LINGER, and for IP_HDRINCL (like my patch with #ifdef) among others.
Or maybe you meant setsockopt options rather than the actual call?
Either way I hope you can easily use setsockopt to enable traceroute with
connect() scans because that'd be cool :)
Thanks,
Kris Katterjohn
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Sun Oct 14 2007 - 15:04:52 GMT