Nmap Development mailing list archives
Re: [PATCH] nping - printf line in ippackethdrinfo
From: "Luis M." <luis.mgarc () gmail com>
Date: Sun, 23 Aug 2009 13:29:56 +0100
Hi Jack, I totally forgot about that debug printf(). I've just removed it. Thanks!! Luis. Jack Grahl wrote:
Not sure what this line does, maybe left here by mistake? Otherwise it might be better if it printed the LEN and VER to the buffer that ippackethdrinfo returns rather than straight to stdout? Jack --- nping-build2/common_modified.cc 2009-08-22 13:07:24.000000000 +0100 +++ nping-0.1BETA2/common_modified.cc 2009-08-20 19:01:10.000000000 +0100 @@ -1642,7 +1642,7 @@ Snprintf(icmptype, sizeof icmptype, "Destination unreachable (bogus original datagram)"); goto icmpbad; }else - //printf("LEN %d VER %d\n", (ip2->ip_hl * 4), ip2->ip_v); + printf("LEN %d VER %d\n", (ip2->ip_hl * 4), ip2->ip_v); /* We have the original datagram + the first 8 bytes of the * transport layer header */ _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [PATCH] nping - printf line in ippackethdrinfo Jack Grahl (Aug 22)
- Re: [PATCH] nping - printf line in ippackethdrinfo Luis M. (Aug 23)