Nmap Development mailing list archives

Re: Missing nsp_settrace()


From: David Fifield <david () bamsoftware com>
Date: Tue, 22 Jan 2013 15:42:29 -0800

On Tue, Jan 22, 2013 at 05:14:18PM -0600, Daniel Miller wrote:
On 01/22/2013 04:59 PM, Gisle Vanem wrote:
This function is in nsock.h and used in 'examples/nsock_telnet.c',
'examples/nsock_test_timers.c' (and 'ncrack.cc'). Also a comment
in nmap.h refers to it. But the implementation of it is gone.

My old ncrack repo had it though. What's the story here? Too bad
if tracing is deprecated.

This was probably related to Henri's enhanced Nsock logging project
(http://seclists.org/nmap-dev/2012/q4/401) that got merged in
r30403.

Looking at this now, I think that there should be a default logger
function that writes to stdout, so that you don't have to make a logger
function in test programs. Just setting the loglevel should be enough.
To go with this, nsock_loglevel_t should have a NSOCK_LOG_NONE with the
value 0, so that by default nothing is logged even though there is a log
function set.

What do you think, Henri?

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


Current thread: